Page 1 of 1

MCH3601 unmonitored by HTTPAPIR4

Posted: Fri Apr 19, 2024 9:29 pm
by mgallipeau
Would anyone be able to help me understand why I'm getting this error? I didn't really change the program. Just changed the url, bearer token, and tweaked the JSON, but it's valid. The program is blowing up on the following statement:
rc = http_req( 'POST' : url : *omit : *omit : *omit : JSONsnd : 'application/json');

JSONsnd holds the following value:
[ { "key": "000194", "name": "9571-0011", "quantity": 100, "active": true,"extensionData": { "greatlakes.status": "In Transit", "greatlakes.batch": "B0000138", "greatlakes.customer": "SYSTEMS LLC"}, "tagKey": "A00000000000000000000194" } ]

Here are the log errors I'm getting:
senddoc(): entered
[ { "key": "000199", "name": "9571-0011", "quantity": 50, "active": true,"extensionData": { "greatlakes.status": "In Transit", "greatlakes.batch": "B0000143", "greatlakes.customer": "SYSTEMS LLC"}, "tagKey": "A00000000000000000000199" } ]
recvresp(): entered
HTTP/1.1 404 Not Found
Content-Length: 171
Content-Type: application/problem+json; charset=utf-8
Date: Fri, 19 Apr 2024 20:28:24 GMT
Server: Kestrel


SetError() #13: HTTP/1.1 404 Not Found
recvresp(): end with 404
recvdoc parms: identity 171
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
recvdoc(): Receiving 171 bytes.
{"$id":"1","type":"https://tools.ietf.org/html/rfc7231#sec ... itle":"Not Found","status":404,"traceId":"00-e151df5ce8be80ed03278c18a393f008-c844fdb886f585ad-00"}


Thank you.

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Sun Apr 21, 2024 11:34 am
by vhamberg
What is the message text? And if you have the job log, it would help to see the messages that come before the MCH3601.

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Sun Apr 21, 2024 3:20 pm
by jonboy49
It is pretty clear from the returned error text that you have made an error in the URL. Depending on the service, "error" could include credentials but more likely the URL itself.

You have changed pretty much everything about the relevant part of the program if what you said is true "... Just changed the url, bearer token, and tweaked the JSON ..."

Show us some code and we may be able to help more.

P.S. This topic should probably be in the HTTPAPI list.

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Mon Apr 22, 2024 5:48 am
by Scott Klement
What version of HTTPAPI?

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Mon Apr 22, 2024 1:19 pm
by mgallipeau
Scott, the version in the log says Ver 1.45 released 2021-09-20.

vhamberg, there really wasn't any other messages that came out on the job log before that MCH3601.

jonboy49, the developer I'm working with on the other side said he tried copying my body and endpoint into Postman and ran it in his Dev1 instance, and it worked. But he said he used a different bearer token, but if the bearer token wasn't valid, it should be unauthorized, not "not found". As far as the relevant part of the program, I understand what you're saying. I guess the JSON is valid, though. The url and bearer token have changed, but it's not "logic" that changed there; it's just the values, which I've already verified are what they are supposed to be.

The other developer said their API can work with TLS 1.3 and it looks like I'm using TLS version 1.2. Could that be the issue?

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Mon Apr 22, 2024 3:57 pm
by mgallipeau
Hey, everyone. We got it figured out and it looks like it wasn't on my end at all. Thank you for your responses.

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Mon Apr 22, 2024 5:17 pm
by Scott Klement
I'm sure the problem you solved was to fix the 404 error. But it doesn't explain why you'd get an MCH3601... There were fixes in the past to fix MCH3601 in HTTPAPI.

Re: MCH3601 unmonitored by HTTPAPIR4

Posted: Tue Apr 23, 2024 1:21 pm
by mgallipeau
Yeah, I have no idea But I didn't get the MCH3601 again.