HTTP/S Post not working

Hi,

I am in urgent need for a fix . I believe it is not new to many of you. My curl scripts worked fine, but Http/s block doing the same POST is failing. I can’t read its response either. I am using object blocks for both header and body, checked the inputs thoroughly etc. Highly appreciate your help.

Sanjay Iyer

Unfortunately you didn’t provide any details that would help us help you.

True. Here it is. Mark.

Screenshot 2024-12-17 at 5.37.32 PM.pdf (117.3 KB)

Please share a working curl as well

curl -X ‘POST’
https://rosemark-bny-tt-api-8558b91816ab.herokuapp.com/predict
-H ‘accept: application/json’
-H ‘Content-Type: application/json’
-H ‘x-api-key: RxKvRnZar6wVlfL5y09mTQ’
-d ‘{
“q1”: 0,
“q2”: 0,
“q3”: 0,
“q4”: 0,
“q5”: 0
}’

{“prediction”:“Careful Planning Preserver”}%

Hello @Sanjay_Iyer,

It seems there might be an issue with the way the body is being formed in your request. Here’s an example that works for me:

Let me know if you need further assistance or clarification!