Hi Scott,
A very strange situation.
Today it's working. I didn't change anything at my side...
Search found 8 matches
- Wed Jul 10, 2024 9:56 am
- Forum: HTTPAPI
- Topic: comm_blockread failed! / large jsonfile
- Replies: 3
- Views: 12800
- Tue Jul 09, 2024 10:14 am
- Forum: HTTPAPI
- Topic: comm_blockread failed! / large jsonfile
- Replies: 3
- Views: 12800
comm_blockread failed! / large jsonfile
Hello,
I've a problem with a large jsonfile.
It is chunked in different blocks, but it looks like the last block crashes.
I got an error: 'comm_blockread failed!'.
See below the relevant part of the log:
chunk size = 8192
get_chunk_size returned 8192
calling comm_blockread
{"Orders ...
I've a problem with a large jsonfile.
It is chunked in different blocks, but it looks like the last block crashes.
I got an error: 'comm_blockread failed!'.
See below the relevant part of the log:
chunk size = 8192
get_chunk_size returned 8192
calling comm_blockread
{"Orders ...
- Wed Oct 04, 2023 11:47 am
- Forum: HTTPAPI
- Topic: Unauthenticated
- Replies: 11
- Views: 54235
Re: Unauthenticated
Ok,
Thank you for this information. An extra reason to use the HTTP_AUTH_USRDFN option!
Kind regards.
Thank you for this information. An extra reason to use the HTTP_AUTH_USRDFN option!
Kind regards.
- Thu Sep 28, 2023 8:09 am
- Forum: HTTPAPI
- Topic: Unauthenticated
- Replies: 11
- Views: 54235
Re: Unauthenticated
Hi Scott,
I've copied this also exactly in my code (so without the words 'API key') and that works! Great!
Problem solved.
Afterwards looking to the original code I have to take the conclusion that only the '+ CRLF' (x'0d25') was missing in the authorization header...
(I don't know exactly why ...
I've copied this also exactly in my code (so without the words 'API key') and that works! Great!
Problem solved.
Afterwards looking to the original code I have to take the conclusion that only the '+ CRLF' (x'0d25') was missing in the authorization header...
(I don't know exactly why ...
- Tue Sep 26, 2023 7:50 am
- Forum: HTTPAPI
- Topic: Unauthenticated
- Replies: 11
- Views: 54235
Re: Unauthenticated
Hello Scott,
A working token looks like (example of Postman):
Content-Type: application/json
Authorization: xelion 40938a438a479fa277b7f712179fa277b7f7121190c40e1080027d137d73556666e79dbbfdac01f
User-Agent: PostmanRuntime/7.33.0
Accept: */*
Postman-Token: f190fbef-f226-465a-9392-4089786aea8e
Host ...
A working token looks like (example of Postman):
Content-Type: application/json
Authorization: xelion 40938a438a479fa277b7f712179fa277b7f7121190c40e1080027d137d73556666e79dbbfdac01f
User-Agent: PostmanRuntime/7.33.0
Accept: */*
Postman-Token: f190fbef-f226-465a-9392-4089786aea8e
Host ...
- Mon Sep 25, 2023 2:04 pm
- Forum: HTTPAPI
- Topic: Unauthenticated
- Replies: 11
- Views: 54235
Re: Unauthenticated
Hi Scott,
I Use API key xelion because in another example discussed here 'Bearer token' was used. So I suggested I had to use 'API key'.
xelion + a token is the value I have to use in Postman.
Unfortunately if I only send 'Authorization: ' + the token I get the same error.
Thank you for the tip ...
I Use API key xelion because in another example discussed here 'Bearer token' was used. So I suggested I had to use 'API key'.
xelion + a token is the value I have to use in Postman.
Unfortunately if I only send 'Authorization: ' + the token I get the same error.
Thank you for the tip ...
- Mon Sep 25, 2023 12:41 pm
- Forum: HTTPAPI
- Topic: Unauthenticated
- Replies: 11
- Views: 54235
Re: Unauthenticated
Hello Scott,
To begin with the last remark about the CCSID. I'm sorry, I've written a CLLE which calls the RPG with the HTTPAPI and all other stuff in it.
I therefore have a CHGJOB(CCSID37) in my CLLE because I read somewhere this will be necessary to work nice with API's ...
To begin with the last remark about the CCSID. I'm sorry, I've written a CLLE which calls the RPG with the HTTPAPI and all other stuff in it.
I therefore have a CHGJOB(CCSID37) in my CLLE because I read somewhere this will be necessary to work nice with API's ...
- Mon Sep 25, 2023 10:31 am
- Forum: HTTPAPI
- Topic: Unauthenticated
- Replies: 11
- Views: 54235
Unauthenticated
Hi,
I've a similar problem, but this solution didn't help me.
I will try to explain:
With postman this works.
With HTTPAPI I get the error 'Unauthenicated'.
First we have to get a token. Once the token received we have to add it to the header with API Key
I add it to the header with the http ...
I've a similar problem, but this solution didn't help me.
I will try to explain:
With postman this works.
With HTTPAPI I get the error 'Unauthenicated'.
First we have to get a token. Once the token received we have to add it to the header with API Key
I add it to the header with the http ...