https://bugzilla.wikimedia.org/show_bug.cgi?id=70193
Bug ID: 70193
Summary: mediawiki_api 0.2.1 attempt to decode Varnish HTML 500
page
Product: Wikimedia
Version: wmf-deployment
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Quality Assurance
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Found in browser test build
https://integration.wikimedia.org/ci/job/browsertests-Echo-test2.wikipedia.org-linux-chrome-sauce/11/console
Varnish yield a 500 (or 503) error which has a HTML payload. The response
object is passed to json decode which should not happen on a 500.
Trace:
757: unexpected token at '<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...
</html>' (JSON::ParserError)
gems/json-1.8.1/lib/json/common.rb:155:in `parse'
gems/json-1.8.1/lib/json/common.rb:155:in `parse'
gems/mediawiki_api-0.2.1/lib/mediawiki_api/response.rb:85:in `response_object'
gems/mediawiki_api-0.2.1/lib/mediawiki_api/response.rb:46:in `data'
gems/mediawiki_api-0.2.1/lib/mediawiki_api/client.rb:86:in `log_in'
gems/mediawiki_selenium-0.3.2/lib/mediawiki_selenium/support/pages/api_page.rb:14:in
`client'
Echo/tests/browser/features/step_definitions/common_steps.rb:32:in `block in
<top (required)>'
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l