Search found 662 matches

by Scott Klement
Fri Dec 30, 2022 10:27 pm
Forum: HTTPAPI
Topic: Help with passing client_id & client_secrete in POST for access token
Replies: 1
Views: 2983

Re: Help with passing client_id & client_secrete in POST for access token

You haven't provide much information aside from that it's not working for you. Have you tried using HTTPAPI's tools for creating form data, instead of building the form manually? Also, your Postman example is using form-data, but your HTTPAPI example is using x-www-form-urlencoded. I don't just mean...
by Scott Klement
Thu Dec 29, 2022 5:24 am
Forum: YAJL-ILE
Topic: Issue returning JSON to the calling URI
Replies: 2
Views: 1602

Re: Issue returning JSON to the calling URI

You have to send back HTTP headers:

Code: Select all

  data = 'status: 200 OK' + x'25'
       + 'Content-type: text/plain' + x'25' + x'25';
  QtmhWrStout(data: %len(data): err);
Also the encoding of your data must be correct for the CgiConvMode you are using.
by Scott Klement
Thu Dec 29, 2022 5:14 am
Forum: HTTPAPI
Topic: Error: CommTCP_read: Socket has been shut down.
Replies: 3
Views: 4128

Re: Error: CommTCP_read: Socket has been shut down.

No, you don't have to recompile your programs.
by Scott Klement
Tue Dec 20, 2022 10:58 pm
Forum: HTTPAPI
Topic: HTTP/1.1 415 Unsupported Media Type
Replies: 8
Views: 6591

Re: HTTP/1.1 415 Unsupported Media Type

RPG programs cannot produce Java errors.

My guess is that the HTTP server you are connecting to is using Java, and it has a bad reference to a Java object in it's code.
by Scott Klement
Tue Dec 20, 2022 7:04 pm
Forum: HTTPAPI
Topic: HTTP/1.1 415 Unsupported Media Type
Replies: 8
Views: 6591

Re: HTTP/1.1 415 Unsupported Media Type

Aren't you writing your program in RPG? Why would it matter what version of Java you have?!?!
by Scott Klement
Tue Dec 20, 2022 6:43 pm
Forum: HTTPAPI
Topic: HTTP/1.1 415 Unsupported Media Type
Replies: 8
Views: 6591

Re: HTTP/1.1 415 Unsupported Media Type

Actually... thinking about it a little bit more... this sounds more like a Java error than a JSON one. Perhaps the server is having some problems, too?
by Scott Klement
Tue Dec 20, 2022 6:42 pm
Forum: HTTPAPI
Topic: HTTP/1.1 415 Unsupported Media Type
Replies: 8
Views: 6591

Re: HTTP/1.1 415 Unsupported Media Type

Now it sounds like something is wrong with the JSON you are sending. It says it has an object reference that isn't pointing to an object.
by Scott Klement
Tue Dec 20, 2022 6:35 pm
Forum: General
Topic: SCP command not working. EXEC REQUEST FAILED
Replies: 3
Views: 4182

Re: SCP command not working. EXEC REQUEST FAILED

Looks like IBM has a page for this error -- they are suggesting that the system is out of semaphores -- certainly possible? Here's the link, just in case it's helpful: https://www.ibm.com/support/pages/node/6254674
by Scott Klement
Tue Dec 20, 2022 6:33 pm
Forum: General
Topic: SCP command not working. EXEC REQUEST FAILED
Replies: 3
Views: 4182

Re: SCP command not working. EXEC REQUEST FAILED

Typically it means that the SSH server is running out of resources, and can't run your request at this time. In your example, it appears to be trying to run the server-side of the scp command -- and can't launch that command. Possibly there isn't memory, or all of the possible threads are in use, so...
by Scott Klement
Tue Dec 20, 2022 6:27 pm
Forum: HTTPAPI
Topic: Error: CommTCP_read: Socket has been shut down.
Replies: 3
Views: 4128

Re: Error: CommTCP_read: Socket has been shut down.

I assume you changed the IP addresses in the log -- since they are nonsensical and invalid. The error indicates an error reading from the network. Typically it means that the OS said there was data to read from the socket, but then when it requested the data, it got none. This can happen with SSL so...