Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCMManager: createPullRequest() fails behind proxy. #55

Open
schnatterer opened this issue Mar 24, 2021 · 0 comments
Open

SCMManager: createPullRequest() fails behind proxy. #55

schnatterer opened this issue Mar 24, 2021 · 0 comments

Comments

@schnatterer
Copy link
Member

Behind nginx the httpResponse by SCMM looks like so for example:

httpResponse header [server:nginx/1.17.10, date:Wed, 24 Mar 2021 20:03:24 GMT, cache-control:no-cache, location:https://my.host/scm/api/v2/pull-requests/fluxv1/gitops/4]

Leading to

java.lang.NullPointerException: Cannot invoke method split() on null object

Because we look up the header like so:

return httpResponse.headers.Location.split("/")[-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant