commaai / commaai/website

Handle Shopify API errors better

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Svelte
Stars
12
Forks
24
Avg merge
9h 10m
Merged PRs (30d)
38

Description

If a Shopify query returns a error status, this is what we see:

![Image](https://github.com/user-attachments/assets/caa64823-5aa0-4ff0-96a9-af0a07fdabc6)

Because we try to access response when it isn't defined in the case of errors:

https://github.com/commaai/website/blob/ccfce93f981c92e482acf539571cbffa127f336d/src/routes/shop/%5Bproduct%5D/%2Bpage.js#L37-L39

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.