Closed gillesdemey closed 7 years ago
@gillesdemey Nestor should follow redirect 301
and 302
as per https://github.com/cliffano/bagofrequest/blob/master/lib/bagofrequest.js#L34 .
If the redirect points you to 405
, I suspect it's due to the method.
What is the exact nestor command that you executed?
Could you also please provide the following information:
node.js version: node --version npm version: npm --version Nestor version: nestor --version Jenkins version: nestor ver
Seems that I can no longer reproduce this issue, maybe one of the Jenkins plugins were to blame :)
@gillesdemey Thanks for checking it again.
Haven't dug into this too deep, but when our Jenkins deployment responded with a
301
nestor threw ajobRequireParamsError
back at me.I suspect that both
301
and302
responses need apassThroughResponse
similar to https://github.com/cliffano/nestor/blob/b9da38ea3a98d0420c9909bb9c7d94fc3e06f3a8/lib/api/job.js#L104-L105 but haven't been able to verify this yet.Executing the job manually with
curl
verifies that a301
is returned but follows up with a200
and not a405
.