Search found 7 matches

by panders400
Fri Aug 25, 2023 3:50 pm
Forum: HTTPAPI
Topic: Getting a partial response returned from http_req( 'GET'
Replies: 4
Views: 1634

Re: Getting a partial response returned from http_req( 'GET'

Additionally, we ran a test using cURL from out iSeries and it returned the the full JSON response. So this is only occurring when http_req is being used. Should I use a different command? Is there a setting that needs to be switched.
by panders400
Fri Aug 25, 2023 3:05 pm
Forum: HTTPAPI
Topic: Getting a partial response returned from http_req( 'GET'
Replies: 4
Views: 1634

Re: Getting a partial response returned from http_req( 'GET'

It appears to not attempt to get a second chunk. I believe the significant part of the log is at the end: comm_blockread returned 3041 get_chunk_size(): entered SetError() #44: CommTCP_read: Socket has been shut down. get_chunk_size returned -1 http_close(): entered This is the full debuglog HTTPAPI...
by panders400
Thu Aug 24, 2023 6:28 pm
Forum: HTTPAPI
Topic: Getting a partial response returned from http_req( 'GET'
Replies: 4
Views: 1634

Getting a partial response returned from http_req( 'GET'

I am doing a get to return a long response string. I am getting back only 3041 characters of the JSON. When I run this URL in Postman, the whole JSON is returned. My response string is plenty long - 2,000,000 VARCHAR. in the HTTP_Req procedure, the resultstr is only the 3041 characters, LEN=3041. th...
by panders400
Wed Aug 16, 2023 6:24 pm
Forum: YAJL-ILE
Topic: Json document with nested arrays, one without name/id
Replies: 9
Views: 15182

Re: Json document with nested arrays, one without name/id

Thank you for your analysis. I was able to utilize JonBoy's idea of naming it for the yajldtagen and then modifying the outbound JSON document. I believe I am having basically the same problem with the returned response, even though I only need a small portion of it. At least I know how to handle th...
by panders400
Thu Aug 10, 2023 4:56 pm
Forum: YAJL-ILE
Topic: Json document with nested arrays, one without name/id
Replies: 9
Views: 15182

Json document with nested arrays, one without name/id

I am attempting to create the DS for API. YajlGen got me most of the way there, however one nested array it couldn't/wouldn't create. I have nested arrays, but only the outer one has a name. How can you define this DS and hopefully have it created with Data-Gen using YAJL? Or do I have to edit the r...
by panders400
Fri Jul 21, 2023 2:57 pm
Forum: HTTPAPI
Topic: REST API to get authorization token
Replies: 2
Views: 2340

Re: REST API to get authorization token

Thank you for your response, Jonboy. I made adjustments. It did change things. With 2 additional small changes (fixing the host and trimming my user id and password) IT WORKED!!!!!

Thank you!
by panders400
Thu Jul 20, 2023 9:34 pm
Forum: HTTPAPI
Topic: REST API to get authorization token
Replies: 2
Views: 2340

REST API to get authorization token

I am very new to the HTTP API world, but have been tasked with getting these APIs for Tradebeyond/CBX to work. I have the oauth/token API working in Postman, but can't seem to get it right in the RPG. I am looking for any help I can get. The url is https://partycity-sandbox-api.cbxcloud.com/oauth/to...