"301 Moved Permanently" error from target server with a basic auth/auth token

Not applicable

Hello All, I'm a newbie to APIgee. I'm encountering "301 Moved Permanently" error (see below the complete HTML) in the APIgee Trace when API proxy (with auth token / basic authentication) hits the target server/service. When I hit the same target service from a REST client with the same authentication token I do get a valid response (200 status code). Can any one point me where I'm missing?

I'm using the trial APIgee cloud version.

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
Solved Solved
0 2 1,769
1 ACCEPTED SOLUTION

Not applicable

My bad - Targetserver was configured to http port(80) instead of https port(443) in the test env.

View solution in original post

2 REPLIES 2

Hi @Ramchander Chopperla

Ideally you should not get 2 separate responses. 301 means the url has changed. Switch on trace in your proxy and check the url being invoked from the target request flow

Not applicable

My bad - Targetserver was configured to http port(80) instead of https port(443) in the test env.