How to resolve "403 Unauthorized request" error in SAP loadrunner script? - http-status-code-403

After recording a script of SAP site using loadrunner , while executing them we are getting "403 Unauthorized request" error for a request where we are passing the SAP ID.
We have done the correlations also . But still its throwing error

Please define, "we have done the correlations also."
403 is a credential issue, related either to poor credentials or an expired session token which is not handled in your test code.

Related

JMeter - API test Plan - Service unavailable. Please try again later error

I created an API test plan in JMeter.
(Post) Login Authentication API
(Get) API to search for data (Authenticated with the help of correlation)
The Login API works fine I am able to see the response. But, the Search API is returning an error "Service unavailable. Please try again later." with error code 500. My API request has got all the data required Can someone help me to fix the issue.
Thanks,
As per 500 Internal Server Error description:
The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response. Sometimes, server administrators log error responses like the 500 status code with more details about the request to prevent the error from happening again in the future.
So my expectation is that you should rather check your server logs to figure out the root cause of the problem rather than looking for a solution from JMeter side.
In general if something is wrong with your request the server should respond with 4xx status code
If you have another way of sending the "search" request you can inspect it and cross check all the associated data including:
URL
Headers (can be passed via HTTP Header Manager), pay attention to Content-Type one
Request body
The value you correlated which can be checked using Debug Sampler and View Results Tree listener combination

No response from Amadeus Sandbox API - internal error reported

Amadeus Sandbox Server is not responding on API call.
The error which is getting displayed:
An internal error has occurred. Please retry your request
Is this temporary issue affecting many?
I'm not sure of which "Sandbox" you are talking about, next time please add an example of the API call you are doing.
So far, I checked the Amadeus Travel Innovation Sandbox and Amadeus for Developers and both platforms are working well.

Python Request Module throws 403 Error + SharePoint Online

I am currently writing a script which will pull information from sharepoint online. To do this outside the sharepoint environment. I need to get the token and Cookies (FedAuth, rtFa). Sames cookies i can get using the requests in python.
Now, If i pass the same cookies in header in my script, while fetching the List data from SP Online. it throws 403 Error. But if same cookies i use in Postman to fetch the list data. It successfully fetches the information.
Can anyone tell me what i am doing wrong?
EDIT: figured out the answer, here is the link for the same

bot framework embedded chat 403 error

I am using the embedded chat control to hook up to my Microsoft Bot Framework bot and I keep getting these errors:
(I'm using Node.js on AWS Elastic Beanstalk. None of these errors happen when I run the code locally)
jquery.min.js:11 POST https://webchat.botframework.com/api/conversations/null/messages 403 (Forbidden)
The bot doesn't respond and a few minutes later it shows this:
jquery.min.js:11 GET https://webchat.botframework.com/api/conversations/Bv3bkhOgxas/messages?watermark=131101401454109138 403 (Forbidden)
which is sometimes accompanied by a 500 (Internal Server Error)
I assume the null in the first message is a clue. Does anyone know what is going on or how I can fix it?
Thanks.
Hard to tell what you are doing w/o additional detail. But it's likely your header either doesn't contain an auth token or the incorrect one.

Spotify Web API won't work for a specific user?

I'm trying to use the web api to query a user's playlists (using the spotipy Python library). I got the user to oAuth in, got an access token, made the request and got a 500 error:
SpotifyException: http status: 500, code:-1 - https://api.spotify.com/v1/users/125139403/playlists?limit=50&offset=0: Server error.
I then tried the same request in Web API test console and it worked fine.
But then things get kind of weird. I tried running the cURL command the console generated in a terminal and got the same 500 error.
Then I tried running the same request using cURL but just changing the username in the URL and it worked fine (at least for public playlists) for both my username and a random friend's user ID number.
I thought maybe I'm having a token issue but the token I'm using seems to work fine with other usernames. It's just the one specific user for whom I'm getting the error.
I'd rather not post the user's ID on this public forum but I can email it to someone if it's relevant.
My best guess for what's wrong at this point is a bug on Spotify's side but I certainly could be doing something wrong.
Again, thanks for reporting this. This bug was fixed by Matt M. and was just deployed to production.
Please try it out in our API Console. (which Matt was also part of building!)

Resources