unfolding-io / Astrorante

AstroRante is a state-of-the-art website theme crafted for fine dining establishments. Combining the power of Astro, Storyblok CMS, Vue, and Tailwind, AstroRante delivers an unparalleled online presence for your restaurant.
https://astrorante.unfolding.io/
Other
25 stars 11 forks source link

Connecting to datasource #3

Closed planetcomcreative closed 2 days ago

planetcomcreative commented 2 weeks ago

Screenshot 2024-08-28 105542 I just setup the project but I'm having issues connecting to the data source.

here is what I'm getting in my terminal:

10:29:06 [ERROR] [vite] Error: cannot print server URLs before server.listen is called. 10:29:06 [WARN] [vite] A PostCSS plugin did not pass the from option to postcss.parse. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue. 10:29:07 [astro-icon] Loaded icons from src/icons 10:29:08 [200] /setup 84ms Error in searchListings: { message: 'Not Found', status: 404, response: 'This record could not be found' } 10:29:09 [200] /api/setup/datasources/pull 524ms

preetamslot commented 2 weeks ago

Hi, I have to investigate. can you let me know your OS and node version?

planetcomcreative commented 2 weeks ago

Hi, Thank you. I'm on Windows 11 and node version is 20.16.0

alvinChristianto commented 6 days ago

got same error. my windows is 11 and node version is v20.3.0. is there any solution for this. the template looks nice

preetamslot commented 5 days ago

I will create a new storyblok account to test this bug.

preetamslot commented 4 days ago

@alvinChristianto @planetcomcreative . Think I found the issue, it could be that new accounts have a more strict rate limit on the SB API. I have updated the code, can you check? If you get an error, first try the refresh button, then retry the sync.

planetcomcreative commented 2 days ago

@alvinChristianto @planetcomcreative . Think I found the issue, it could be that new accounts have a more strict rate limit on the SB API. I have updated the code, can you check? If you get an error, first try the refresh button, then retry the sync.

Unfortunately, I still get a similar error: 09:07:29 [200] POST /api/setup/datasources/push 201ms Error in searchListings: { message: 'Unauthorized', status: 401, response: 'Unauthorized' } 09:07:30 [200] POST /api/setup/datasources/push 342ms Error in searchListings: { message: 'Unauthorized', status: 401, response: 'Unauthorized' } 09:07:31 [200] POST /api/setup/datasources/push 195ms Error in searchListings: { message: 'Unauthorized', status: 401, response: 'Unauthorized' } 09:07:32 [200] /api/setup/components/pull 344ms Error in searchListings: { message: 'Unauthorized', status: 401, response: 'Unauthorized' } 09:07:33 [200] /api/setup/stories/pull 337ms

preetamslot commented 2 days ago

Even with a new SB account I never had the Unauthorized error form SB API :( this looks more like a API issue, somehow your personal token has not enough rights to your space. :(

I am closing this issue for now.