You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running example-vitepnpm dev with vite.config.ts:
server: {port: 3020,},
The web seems working. But my browser shows this error:
Could not POST streaming to /sync/stream - 404 - Not Found: [WebRemote.ts:58:14](http://localhost:3020/@fs/Users/guillem/programacio/codi/cites/databases/powersync-js/packages/powersync-sdk-web/src/db/sync/WebRemote.ts)
And also XHR POST http://localhost:3020/sync/stream [HTTP/1.1 404 Not Found 1ms]
Do you know why?
The text was updated successfully, but these errors were encountered:
I write the question here to be searchable in Google for others.
guillempuche
changed the title
Vite example shows this error Could not POST streaming to /sync/stream
Vite example shows this error Could not POST streaming to /sync/stream in WebRemote.ts
Mar 9, 2024
guillempuche
changed the title
Vite example shows this error Could not POST streaming to /sync/stream in WebRemote.ts
Vite example shows this error Could not POST streaming to /sync/stream in WebRemote.tsMar 9, 2024
guillempuche
changed the title
Vite example shows this error Could not POST streaming to /sync/stream in WebRemote.ts
Vite example shows this error Could not POST streaming to /sync/stream in WebRemote.ts and 404 Not Found http://localhost:3020/sync/streamMar 9, 2024
Hi @guillempuche this is currently expected behaviour.
The log above the error mentions that there aren't any actual backend credentials configured. This will cause any network requests to the PowerSync instance to fail.
The connecting step is only included in the Vite example to verify that all web worker config has been bundled correctly.
Great @stevensJourney, I imagined this. To stop the confusion, I'd add your hint to README and linking it to this issue.
I'm working on integrating auth with Stytch https://stytch.com/ (support React and React Native). Let's see if I finish it and open source the example. Your examples are little hard to follow because Supabase does everything.
When running
example-vite
pnpm dev
withvite.config.ts
:The web seems working. But my browser shows this error:
And also
XHR POST http://localhost:3020/sync/stream [HTTP/1.1 404 Not Found 1ms]
Do you know why?
The text was updated successfully, but these errors were encountered: