Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MarkGibbons
Copy link

Gitlab may respond with a 429 error and a message of 'Retry later'. The
response body in this case has content-type 'text/plain'. This change
adds support for 429 errors and processes the body of responses with
content formated as 'text/plain'.

Should fix issue #458.

@NARKOZ
Copy link
Owner

NARKOZ commented Jan 28, 2019

Thanks for the PR. Could you add tests for this change?

@MarkGibbons
Copy link
Author

I'll try.

Gitlab may respond with a 429 error and a message of 'Retry later'.  The
response body in this case has content-type 'text/plain'. This change
adds support for 429 errors and processes the body of responses with
content formated as 'text/plain'.

Add tests for the changes to Gitlab:Error:ResponseError.build_error_message
@MarkGibbons
Copy link
Author

I added two tests to exercise the method I added. I sorry they aren't very good, I don't know how to create a httparty::response for testing.

@NARKOZ NARKOZ merged commit 1cd2c28 into NARKOZ:master Jan 30, 2019
@NARKOZ
Copy link
Owner

NARKOZ commented Jan 30, 2019

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants