edgestorejs / edgestore

https://edgestore.dev
397 stars 25 forks source link

Getting error : Missing edgestore-ctx cookie #15

Closed priya-jain-dev closed 10 months ago

priya-jain-dev commented 10 months ago

While uploading single file getting error Missing edgestore-ctx cookie from API call. I followed steps mention in : https://edgestore.dev/docs/components/image

perfectbase commented 10 months ago

Hi @priya-jain-dev!

I’m not sure what the problem might be. Did you setup the provider correctly in the root of your app? Can you take a look in your network tab to see if the init api is succeeding?

You can also try to run the example app in your machine. Here are the steps to run the example app:

Then compare it with your project and try to find the problem.

Let me know if this helps you.

priya-jain-dev commented 10 months ago

Hi @perfectbase thanks for quick response. init is returning token. But still getting 401 with upload api

image
perfectbase commented 10 months ago

@priya-jain-dev strange… if you make a minimal reproducible repo, I can take a look (maybe tomorrow)

otherwise, you might be able to figure it out from one of the example apps.

priya-jain-dev commented 10 months ago

Working now... Not sure how. After running small demo. I just restarted main project today without any change its working. Might be due to next cache.