Search found 9 matches
- Fri Aug 23, 2024 1:26 pm
- Forum: YAJL-ILE
- Topic: Data-Into w/ returned UTF-8 data from HTTP_req
- Replies: 2
- Views: 26765
Re: Data-Into w/ returned UTF-8 data from HTTP_req
Thank you, Scott. I will try your suggestions.
- Thu Aug 22, 2024 9:48 pm
- Forum: YAJL-ILE
- Topic: Data-Into w/ returned UTF-8 data from HTTP_req
- Replies: 2
- Views: 26765
Data-Into w/ returned UTF-8 data from HTTP_req
I am using HTTP_req for API call. The data being returned hasn't been an issue previously, but recently some data was entered that had UTF-8 characters that do not convert to EBCDIC and it caused an error. Previously I hadn't had to do any UTF-8 encoding, but it was suggested that I do. I was able t...
- Fri Aug 25, 2023 3:50 pm
- Forum: HTTPAPI
- Topic: Getting a partial response returned from http_req( 'GET'
- Replies: 4
- Views: 8965
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.
- Fri Aug 25, 2023 3:05 pm
- Forum: HTTPAPI
- Topic: Getting a partial response returned from http_req( 'GET'
- Replies: 4
- Views: 8965
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...
- Thu Aug 24, 2023 6:28 pm
- Forum: HTTPAPI
- Topic: Getting a partial response returned from http_req( 'GET'
- Replies: 4
- Views: 8965
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...
- Wed Aug 16, 2023 6:24 pm
- Forum: YAJL-ILE
- Topic: Json document with nested arrays, one without name/id
- Replies: 9
- Views: 41533
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...
- Thu Aug 10, 2023 4:56 pm
- Forum: YAJL-ILE
- Topic: Json document with nested arrays, one without name/id
- Replies: 9
- Views: 41533
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...
- Fri Jul 21, 2023 2:57 pm
- Forum: HTTPAPI
- Topic: REST API to get authorization token
- Replies: 2
- Views: 7228
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!
Thank you!
- Thu Jul 20, 2023 9:34 pm
- Forum: HTTPAPI
- Topic: REST API to get authorization token
- Replies: 2
- Views: 7228
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...