Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


zfemmer
2024-05-09T16:58:03Z
I am working on a new integration and having a bit of trouble getting it working using the HTTP task. Everything is working fine in Postman, but VC gives me an error about one of the parameters having to be a number.

I have tried just having the the store_id parameter as a VC variable, having the whole API request as a VC variable, as well as just hard coding the entire API request in the Endpoint/URL field.

Here is the request:
https://url.com/v1/API/?store_id=6031 

Exception in Task: Unhandled errors
{"statusCode":400,"error":"Bad Request","message":"child \"store_id\" fails because [\"store_id\" must be a number]","validation":{"source":"query","keys":["store_id"]}}
Error getting HTTP response: The remote server returned an error: (400) Bad Request.


If I add another parameter behind it it causes a similar problem, but with the new parameter:

https://url.com/v1/API/?...d=6031&perpage=10000 

Exception in Task: Unhandled errors
{"statusCode":400,"error":"Bad Request","message":"child \"perpage\" fails because [\"perpage\" must be a number]","validation":{"source":"query","keys":["perpage"]}}
Error getting HTTP response: The remote server returned an error: (400) Bad Request.
Sponsor
Forum information
Scroll to Top