01-05-2017 12:05 PM - edited 01-21-2024 9:35 PM
Hello all!
I have a problem regarding HTTP calls through B1iF to the Magento API. I've done alot of testing with Postman and all my tests are getting through without any errors.
When I started on the actual integration solution through the B1iF, my first call failed and I cant seem to find out why.
The call itself gets a HTTP 302-error (redirect) then the redirect calls are just bouncing on the service until it eventually it times out after 20 retries.
The exact same call is successful in Postman and other programs as well using different languages, but it does not work in the B1iF.
This is my call from the MsgLog in B1iF: msglog.txt
The output only shows a "Redirected too many times (20)" error so I tracked the call through Fiddler and got this data, it is executed in the following order:
1. post-request.txt -> post-response.txt
2-20 redirect-request.txt -> redirect-response.txt (This repeats until timeout)
Why does the integration behave this way?
The only thing that differs the calls made through Postman is that it stores Cookies in the header, a PHPSESSID. The call in Postman gets a 200 OK, and i get what i want from the service. This is the Postman call tracked with Fiddler:
1. post-request.txt -> post-response.txt
In my opionion the problem lies within Tomcat6 (using B1if version: 1.21.3), since it seems to be unable to store cookies. But maybe this isnt the error at all, its just what I can see differ in the calls i make.
Any help or pointers is much appreciated.
Regards Marcus
I cant seem to edit my post since i get an internal error but i attached the wrong Postman files, this is the response and request:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.