polotno-project / polotno-board

Roadmap and bug-tracker for the Polotno project.
https://polotno.dev/
9 stars 1 forks source link

Open the pages timeline and add pages: it makes network calls to GET /null which fails with 404 not found #82

Closed ADTC closed 2 months ago

ADTC commented 2 months ago

You can easily reproduce it in Polotno Studio, and even in a very basic Polotno app. Simply open the pages timeline and add pages, then observe Dev Tools:

image

For the sake of searching, noting here different variations:

GET https://studio.polotno.dev/null 404 (Not Found)
GET http://localhost:3000/null 404 (Not Found)
GET http://localhost:3001/null 404 (Not Found)
GET http://localhost:3002/null 404 (Not Found)
GET http://localhost:3003/null 404 (Not Found)
GET http://localhost:3004/null 404 (Not Found)

Also, in npm run dev/next dev logs:

GET /null 404 in 245ms (etc.)

This was extremely difficult to track down BTW. I had to create a fresh project, and slowly bring in code from broken project bit by bit until I found the culprit line:

<PagesTimeline store={store} defaultOpened />

Then I re-did the test by adding just this bit into a fresh basic Polotno app. It was also reproducible.

That's when I figured out, I could also test this in the Studio website simply by opening the pages timeline and adding pages.

lavrton commented 2 months ago

Thanks for the report. I made a fix. Will release very soon.

ADTC commented 2 months ago

Thank you. What will be the version number?

lavrton commented 2 months ago

You can try the last one. https://polotno.com/changelog