URGENT: Shipping Rate fetching with an "OK" response show featching errors

Hi, I am having a weird problem regarding using Shipping Webhook that I could not figure out why

  1. The Webhook responses and returns fine

  2. However, during checkout, it keeps showing there is an error but without telling what the error is about
    image

How can a bad request shows an error as “OK”? My confusion went through the roof
I am using Snipcart 3.3.0.
Any help is appreciated. Thank you

Hello everyone, I would like to follow up with this matter. I tried many things but none worked. Any help is appreciated

Hello everyone.

After digging my brain through trial and error, I discovered the problem. I will put solution here for reference

If you are doing shipping webhook and recieve an “OK” 400 error, meaning you forgot to return the header of

“Content-type”: “application/json”

Also, because you will need to use JSON.parse() instead of Stringify() when reading the content posted by Snipcart