Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 (Internal Server Error) #26

Open
Pannu786 opened this issue May 23, 2022 · 9 comments
Open

500 (Internal Server Error) #26

Pannu786 opened this issue May 23, 2022 · 9 comments

Comments

@Pannu786
Copy link

Hi

I almost finished this project, but I face this one issue and need help here.
Screenshot 2022-05-23 125935

Screenshot 2022-05-23 125851

My slug file
FireShot Capture 004 - ecommerce_ slug js at main · Pannu786_ecommerce - github com

@miahthegreat
Copy link

miahthegreat commented May 25, 2022

@Pannu786 is it only happening when you click the Buy Now button in the banner or any product on the home page?

@Pannu786
Copy link
Author

@Pannu786 is it only happening when you click the Buy Now button in the banner or any product on the home page?
Just the BUY NOW button on the banner. Other than that rest of the app works fine.

@miahthegreat
Copy link

It's more than likely an issue with the product slug that the banner points too. Either the product doesn't exist in Sanity or there is no image published for the product.

@Pannu786
Copy link
Author

Hmm, I will have a look. Thank for the help tho.

@dmroberts302
Copy link

I think i found the problem, you imported capital Product from components when it should have been lower case product and i think this is the reason all four properties of lowercase product is null. Import product instead and let me know if this helps.

@Pannu786
Copy link
Author

Pannu786 commented Jun 5, 2022

@dmr019 I wish I could say it worked but it did not.

@AM-Darshan
Copy link

@dmr019 I wish I could say it worked but it did not.

Its the problem with ur sanity database, u have to go to banner section (open localhost:3333) and there u have "product" field. There u have to change it to a slug that is already existing in the database of any product u wanna display.
Since there is no product with slug "Headphones" you are getting an error.

@Pannu786
Copy link
Author

Pannu786 commented Oct 1, 2022 via email

@Pradhan1999
Copy link

@dmr019 I wish I could say it worked but it did not.

Here, slug name in Product and product name in Banner sholud be same.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants