Unexpected error Error: get /auth/csrf failed [404/4]: status error data undefined

Hi.

Today i started receiving this error on studio. Unexpected error Error: get /auth/csrf failed [404/4]: status error data undefined. i’ve tried everything. Reverted to earlier versions and still the same. i have my custom domain in use and i have set up my own authentication system.

@miika_karppinen Are you seeing this error in studio or when you navigate to your project?
I would need some info to help you debug the issue:

  1. The details of the error from the console
  2. Project ID
  3. Some details on how you have set up your auth system
  4. Your last actions that might’ve caused this error

This happens inside Plasmic Studio when I use my login button.
In the browser devtools console I see:

GET https://host.plasmicdev.com/api/v1/auth/csrf 404

[Violation] Potential permissions policy violation: payment is not allowed in this document.
simulaatiot:1 Failed to load resource: the server responded with a status of 404 ()
host.plasmicdev.com/api/v1/auth/csrf:1 Failed to load resource: the server responded with a status of 404 ()
root-view.tsx:493 Uncaught (in promise) k: get /auth/csrf failed [404/4]:
status error
data undefined
at Object. (api.ts:130:15)
at l (jquery.js:3496:31)
at Object.fireWith [as rejectWith] (jquery.js:3626:7)
at C (jquery.js:9788:14)
at XMLHttpRequest. (jquery.js:10047:9)
at XMLHttpRequest.r (helpers.js:72:23)
at api.ts:78:31
at new Promise ()
at N (api.ts:64:3)
at I.req (api.ts:171:12)
at I.get (SharedApi.ts:305:17)
at I.refreshCsrfToken (SharedApi.ts:806:35)
at root-view.tsx:477:23
at E (app-ctx.ts:424:24)
at root-view.tsx:472:41
at root-view.tsx:493:7
at oO (react-dom.production.min.js:243:332)
at uB (react-dom.production.min.js:285:111)
at react-dom.production.min.js:281:391
at x (scheduler.production.min.js:13:203)
at MessagePort.R (scheduler.production.min.js:14:128)
[Violation] Potential permissions policy violation: payment is not allowed in this document.

My own API works fine
(curl tests and requests from my published site succeed).
The error only involves the Plasmic domain host.plasmicdev.com,
so it looks like an internal Studio request.

Project ID: mdv6YZhj2dv7yJHVnFifCW
Recent changes: I added some “Run code” actions that call my own API,
but the /auth/csrf 404 happens even on a minimal page with no actions

@miika_karppinen Can you try clearing your cache (or opening in incognito mode) and relogging in to Plasmic Studio?

I have tried that. didnt change anything.

Hello @alex_noel

I am encountering this error in the studio while navigating from one page to another in preview mode. Need your super-fast help on this.

Thanks

@alex_noel

This is the URL getting constructed - below two page have created and trying to navigate from one page to another

https://host.plasmicdev.com/more-info

https://host.plasmicdev.com/welcome

@paras_mahto @miika_karppinen Sorry for late reply!
we’re investigating this, trying to reproduce the issue from end