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

use access json header / extend error message parsing for stash #89

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Conversation

bakito
Copy link
Contributor

@bakito bakito commented Dec 30, 2020

As found in https://discourse.drone.io/t/panic-or-undefined-error-when-create-build-from-bitbucket-repository/8549/3

Somehow Bitbucket server does not always return a list of Errors, but only one message with status code.

This PR uses this rool-level message as error if present if the error list is empty.

It also sets the "Accept: application/json" header on the request, since the following code expects the response to be json.

@CLAassistant
Copy link

CLAassistant commented Dec 30, 2020

CLA assistant check
All committers have signed the CLA.

@bakito bakito changed the title use access json header / extend error message parsing use access json header / extend error message parsing for stash Dec 30, 2020
@ashwilliams1 ashwilliams1 marked this pull request as draft December 30, 2020 18:07
@bakito bakito marked this pull request as ready for review December 31, 2020 07:05
@bakito
Copy link
Contributor Author

bakito commented Dec 31, 2020

@ashwilliams1 sorry had the wrong branch in the PR, it's now corrected and all dev code is removed

@bradrydzewski bradrydzewski self-requested a review January 27, 2021 19:55
@bakito
Copy link
Contributor Author

bakito commented Apr 2, 2021

When will this be merged and integrated into drone?

@eoinmcafee00
Copy link
Contributor

Thanks @bakito

Looks good merging now.

@eoinmcafee00 eoinmcafee00 merged commit 3a08005 into drone:master Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants