-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Sometimes we get a response that looks like the following and this will raise a ValueError because it cannot be parsed as JSON:
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<title>Wikimedia Error</title>
<style>
* { margin: 0; padding: 0; }
body { background: #fff; font: 15px/1.6 sans-serif; color: #333; }
.content { margin: 7% auto 0; padding: 2em 1em 1em; max-width: 560px; }
.footer { clear: both; margin-top: 14%; border-top: 1px solid #e5e5e5; background: #f9f9f9;
It seems that this can happen for many reason, but we should probably re-try the request a maximum number of times before giving up instead of just raising the error.
Metadata
Metadata
Assignees
Labels
No labels