Hamish
Hamish4mo ago

API call not working

Hi, Newbie here, I tried making an api call to openfoodfacts but I keep getting this error. It works when I make the api call in the address bar but doesn't seem to work in the buildship environment. Any help would be much appreciated. Thanks Hamish
No description
9 Replies
Gaurav Chadha
Gaurav Chadha4mo ago
Hi @Hamish we tested the worldopenfood facts api - using the API call node and it is working fine. https://world.openfoodfacts.org/api/v0/product/20891299.json
No description
Gaurav Chadha
Gaurav Chadha4mo ago
You can make a request using the API Call node - https://docs.buildship.com/utility-nodes/api-call-node.
Stu
Stu4mo ago
I have a OpenFood Facts API node that all of a sudden is returning: { "status_verbose": "product not found" } for the past couple of days. Not sure why. I'm using the same endpoint as you: https://au.openfoodfacts.org/api/v0/product/${productId}.json` Suspect something is up on the OFF side. I'll let you know if I find a solution.
Henry Moses
Henry Moses4mo ago
Hey @Stu any updates here? Anyway I can help?
Stu
Stu4mo ago
Yeah... I'm having exactly the same issue. I even recreated the node using the SDK and am getting the same result. It's really strange. API calls using the exact same barcode on the API docs site is producing a result. This is the new node that we all should probably be transitioning to anyway (away from v0)... when we can work out what the block is.
Henry Moses
Henry Moses4mo ago
Hey @Gaurav Chadha can you please share with me the details from this node? I'm working on solving this problem for @Stu. Hey, I know your offline. Please follow this video when your back online!
Henry Moses
Henry Moses4mo ago
@Stu
Henry Moses
Henry Moses4mo ago
No description