rare-sapphire
rare-sapphire5w ago

I just set up devtools on my local project here but when I open them it sends me to login but then

it redirects because its trying to sign in via github to devtools and it just redirects, I guess its not accessing as its all local
13 Replies
kapa.ai
kapa.ai5w ago
Hi @Salvador_James. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you're encountering an issue with logging into the devtools when running them locally. This is a known issue, and there are a few points to consider based on the information from the knowledge sources. Known Issues and Workarounds 1. Login Issues in Safari: - There is a known bug where logging in using devtools in Safari results in an "Invalid-session-token" error. This issue occurs regardless of whether you use GitHub or Google to log in (source (https://github.com/refinedev/refine/issues/5753)). 2. Documentation and Configuration: - The documentation for devtools might not clearly state that a standalone server is required, which can be started using the @refinedev/cli package. If you're not using the CLI, you can manually start the devtools server by installing the @refinedev/devtools-server package and running pnpm exec refine-devtools (source (https://github.com/refinedev/refine/issues/5840)). 3. Login Requirement: - The need for a Google or GitHub login for local devtools usage has been a point of contention. The documentation should explain why the login is required, what information is collected, and what external backend is used (source (https://github.com/refinedev/refine/issues/5840)). Steps to Resolve 1. Ensure Devtools Server is Running: Make sure you have the devtools server running. If you're not using the CLI, you can start it manually:
pnpm exec refine-devtools

pnpm exec refine-devtools

2. Check Browser Compatibility: If you're using Safari, try switching to another browser like Chrome or Firefox to see if the issue persists. 3. Login Information: Ensure that you are aware of the login requirements and the data being collected. This might help in understanding why the login is necessary and if there are any network issues causing the redirection problem. Additional Context - If you are running your development environment in Docker containers, note that devtools bind exclusively on localhost, which might cause issues if the client cannot reach the server. There is currently no configuration option for defining the binding IP (source (https://github.com/refinedev/refine/issues/5111)). If these steps do not resolve your issue, you might want to follow up on the specific GitHub issues or check for any updates in the documentation. For more detailed information, you can refer to the following sources: - Issue #5753 (https://github.com/refinedev/refine/issues/5753) - Issue #5840 (https://github.com/refinedev/refine/issues/5840) - Issue #5111 (https://github.com/refinedev/refine/issues/5111) If you need further assistance, please let me know! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5w ago
<@918155659520925747> kapa.ai is still learning and improving, please let us know how it did by reacting below
rare-sapphire
rare-sapphire5w ago
"Sign in","type":"info"}}}],"messages":[{"id":4000001,"text":"A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?","type":"error","context":{"reason":"A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?"}}]},"created_at":"2024-06-06T14:18:42.809053Z","updated_at":"2024-06-06T14:18:42.809053Z","refresh":false,"requested_aal":"aal1","state":"choose_method"} @kapa.ai "Sign in","type":"info"}}}],"messages":[{"id":4000001,"text":"A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?","type":"error","context":{"reason":"A valid session was detected and thus login is not possible. Did you forget to set ?refresh=true?"}}]},"created_at":"2024-06-06T14:18:42.809053Z","updated_at":"2024-06-06T14:18:42.809053Z","refresh":false,"requested_aal":"aal1","state":"choose_method"}
kapa.ai
kapa.ai5w ago
Let me check the knowledge base for you. One moment! :books: ---------------------- It looks like you're encountering an issue where a valid session is detected, preventing you from logging in. The error message suggests that you might need to set ?refresh=true to refresh the session. Steps to Resolve 1. Add ?refresh=true to the URL: When you encounter the login page, append ?refresh=true to the URL to refresh the session. This should help in bypassing the valid session detection issue. For example:
<http://localhost:5002/?refresh=true>

<http://localhost:5002/?refresh=true>

2. Ensure Devtools Server is Running: Make sure the devtools server is running. If you're not using the CLI, you can start it manually:
pnpm exec refine-devtools

pnpm exec refine-devtools

3. Check Browser Compatibility: If you're using Safari, try switching to another browser like Chrome or Firefox to see if the issue persists. There have been known issues with Safari (source (https://github.com/refinedev/refine/issues/5753)). Additional Context - Login Requirement: Ensure that you are aware of the login requirements and the data being collected. This might help in understanding why the login is necessary and if there are any network issues causing the redirection problem (source (https://github.com/refinedev/refine/issues/5840)). - Docker Environment: If you are running your development environment in Docker containers, note that devtools bind exclusively on localhost, which might cause issues if the client cannot reach the server. There is currently no configuration option for defining the binding IP (source (https://github.com/refinedev/refine/issues/5111)). For more detailed information, you can refer to the following sources: - Issue #5753 (https://github.com/refinedev/refine/issues/5753) - Issue #5840 (https://github.com/refinedev/refine/issues/5840) - Issue #5111 (https://github.com/refinedev/refine/issues/5111) If these steps do not resolve your issue, you might want to follow up on the specific GitHub issues or check for any updates in the documentation. If you need further assistance, please let me know! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5w ago
<@918155659520925747> kapa.ai is still learning and improving, please let us know how it did by reacting below
rare-sapphire
rare-sapphire5w ago
@kapa.ai (base) jamesspalding@Jamess-MacBook-Pro marketsizer-app-test-refine % npm exec refine-devtools ✗ Refine Devtools server (http) failed to start. Port 5001 is already in use.
kapa.ai
kapa.ai5w ago
Let me check the knowledge base for you. One moment! :books: Sorry @Salvador_James, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
rare-sapphire
rare-sapphire5w ago
@kapa.ai (base) jamesspalding@Jamess-MacBook-Pro marketsizer-app-test-refine % npm exec refine-devtools ✗ Refine Devtools server (http) failed to start. Port 5001 is already in use.
kapa.ai
kapa.ai5w ago
Let me check the knowledge base for you. One moment! :books: Sorry @Salvador_James, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
rare-sapphire
rare-sapphire5w ago
@kapa.ai (base) jamesspalding@Jamess-MacBook-Pro marketsizer-app-test-refine % npm exec refine-devtools ✗ Refine Devtools server (http) failed to start. Port 5001 is already in use.
kapa.ai
kapa.ai5w ago
Let me check the knowledge base for you. One moment! :books: Sorry @Salvador_James, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
rare-sapphire
rare-sapphire5w ago
@kapa.ai (base) jamesspalding@Jamess-MacBook-Pro marketsizer-app-test-refine % npm exec refine-devtools ✗ Refine Devtools server (http) failed to start. Port 5001 is already in use.
kapa.ai
kapa.ai5w ago
Let me check the knowledge base for you. One moment! :books: Sorry @Salvador_James, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?