Join the Webstudio community

Updated 4 weeks ago

Troubleshooting local builder issues

Hi All! I'm trying to use the builder locally but I'm stuck with it. Log in with secret not working, but I assume it's correct based on the documentation. Is there something I missing?
Attachments
image.png
image.png
a
O
14 comments
tried github oauth as well but that's stay greyed out even If I run it on localhost 3001
oauth can't work locally without additional setup as you might guess, its an external service
locally your passowrd is exactly what you set in AUTH_SECRET
if you set it afterstarting the server, then you need to restart
I'm totally fine with local pw but did not work after restart either
mine is exactly there and it works
Attachment
image.png
Can I somehow explore what's the reason? Now I even removed the Dev login line and copied yours but still nothing. This is what I get in terminal

Error authenticating with dev AuthorizationError: Secret is incorrect
at FormStrategy.failure (/workspaces/webstudio/nodemodules/.pnpm/remix-auth@3.7.0@remix-run+react@2.15.2_react-dom@18.3.0-canary-14898b6a9-20240318_react@18._btrdrfdenakppienb2qwvwiltm/node_modules/remix-auth/build/strategy.js:37:23)
at FormStrategy.authenticate (/workspaces/webstudio/nodemodules/.pnpm/remix-auth-form@1.5.0@remix-run+server-runtime@2.15.2typescript@5.7.3__remix-auth@3.7.0@re_6k36xajlvwgyjbu6m4czmpqnuq/node_modules/remix-auth-form/build/index.js:15:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
... 14 lines matching cause stack trace ...
at /workspaces/webstudio/node_modules/.pnpm/@remix-run+dev@2.15.2_patchhash=yortwzoeu3uj2blmdikhhw5byy@remix-run+react@2.15.2_react-dom_nya3cpeiabsduhsgtmwfbxy5te/node_modules/@remix-run/dev/dist/vite/plugin.js:871:15 {
cause: Error: Secret is incorrect
at FormStrategy.eval [as verify] (/workspaces/webstudio/apps/builder/app/services/auth.server.ts:109:13)
at FormStrategy.authenticate (/workspaces/webstudio/nodemodules/.pnpm/remix-auth-form@1.5.0@remix-run+server-runtime@2.15.2typescript@5.7.3__remix-auth@3.7.0@re_6k36xajlvwgyjbu6m4czmpqnuq/node_modules/remix-auth-form/build/index.js:10:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at action (/workspaces/webstudio/apps/builder/app/routes/auth.dev.tsx:29:5)
at Object.callRouteAction (/workspaces/webstudio/node_modules/.pnpm/@remix-run+server-runtime@2.15.2_typescript@5.7.3/node_modules/@remix-run/server-runtime/dist/data.js:36:16)
at /workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:4899:19
at callLoaderOrAction (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:4963:16)
at async Promise.all (index 0)
at defaultDataStrategy (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:4772:17)
at callDataStrategyImpl (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:4835:17)
at callDataStrategy (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:3992:19)
at submit (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:3755:21)
at queryImpl (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:3684:22)
at Object.query (/workspaces/webstudio/node_modules/.pnpm/@remix-run+router@1.21.0/node_modules/@remix-run/router/router.ts:3546:18)
at handleDocumentRequest (/workspaces/webstudio/node_modules/.pnpm/@remix-run+server-runtime@2.15.2_typescript@5.7.3/node_modules/@remix-run/server-runtime/dist/server.js:275:15)
at requestHandler (/workspaces/webstudio/node_modules/.pnpm/@remix-run+server-runtime@2.15.2_typescript@5.7.3/node_modules/@remix-run/server-runtime/dist/server.js:160:18)
at nodeHandler (/workspaces/webstudio/node_modules/.pnpm/@remix-run+dev@2.15.2_patchhash=yortwzoeu3uj2blmdikhhw5byy@remix-run+react@2.15.2_react-dom_nya3cpeiabsduhsgtmwfbxy5te/node_modules/@remix-run/dev/dist/vite/plugin.js:868:27)
at /workspaces/webstudio/node_modules/.pnpm/@remix-run+dev@2.15.2_patchhash=yortwzoeu3uj2blmdikhhw5byy@remix-run+react@2.15.2_react-dom_nya3cpeiabsduhsgtmwfbxy5te/node_modules/@remix-run/dev/dist/vite/plugin.js:871:15
}
[POST] /auth/dev - 78ms : wstd.dev:5173
[GET] /login?error=login_dev&message=Secret+is+incorrect&returnTo=%2Fdashboard - 59ms : wstd.dev:5173
[GET] /login?returnTo=%2Fdashboard&_data=routes%2F_ui.login._index - 6ms : wstd.dev:5173
Sorry I needed to paste in multiple messages
can't debug this way, but generally this is not broken
Can you please give me some tips what should I look into? Intitally my system is not quite a dev environment so I even needed to set up my SSH on github which I never done before. I can imagine this is related to something is missing on my mac but it's not explained in detail in the documentation since stuff like that is not for beginners and some steps expected to look into
there shouldn't be anything else, it should just work, so I don't really know what the problem is
I ended up deleting the whole container and reinstalled everything for this project from scratch. Now the log in worked! πŸ™‚
Add a reply
Sign up and join the conversation on Discord