question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prawcore.exceptions.ServerError: received 503 HTTP response

See original GitHub issue

Description

Ive been receiving a 503 error on every try for the past 10 hours. Ive changed my reddit API keys and even tried on a different machine with no luck. Is the reddit API down by any chance or has this anything to do with praw? could not find any info anywhere.

Traceback:

File "RedditMain.py", line 11, in <module>
    (comments, posts) = redditapi.GetData(1483228800, 1522799999, row["Subreddit"])
File "/home/dylan/python/reddit/redditapi.py", line 44, in GetData
    for submission in submissionlist:
File "/usr/local/lib/python3.5/dist-packages/praw/models/reddit/subreddit.py", line 485, in submissions
    sort='new', syntax='cloudsearch'):
File "/usr/local/lib/python3.5/dist-packages/praw/models/listing/generator.py", line 52, in __next__
    self._next_batch()
  File "/usr/local/lib/python3.5/dist-packages/praw/models/listing/generator.py", line 62, in _next_batch
    self._listing = self._reddit.get(self.url, params=self.params)
  File "/usr/local/lib/python3.5/dist-packages/praw/reddit.py", line 371, in get
    data = self.request('GET', path, params=params)
  File "/usr/local/lib/python3.5/dist-packages/praw/reddit.py", line 486, in request
    params=params)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 182, in request
    params=params, url=url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 125, in _request_with_retries
    retries, saved_exception, url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 91, in _do_retry
    params=params, url=url, retries=retries - 1)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 125, in _request_with_retries
    retries, saved_exception, url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 91, in _do_retry
    params=params, url=url, retries=retries - 1)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 127, in _request_with_retries
  File "/usr/local/lib/python3.5/dist-packages/praw/models/listing/generator.py", line 52, in __next__ [0/143]
    self._next_batch()
  File "/usr/local/lib/python3.5/dist-packages/praw/models/listing/generator.py", line 62, in _next_batch
    self._listing = self._reddit.get(self.url, params=self.params)
  File "/usr/local/lib/python3.5/dist-packages/praw/reddit.py", line 371, in get
    data = self.request('GET', path, params=params)
  File "/usr/local/lib/python3.5/dist-packages/praw/reddit.py", line 486, in request
    params=params)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 182, in request
    params=params, url=url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 125, in _request_with_retries
    retries, saved_exception, url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 91, in _do_retry
    params=params, url=url, retries=retries - 1)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 125, in _request_with_retries
    retries, saved_exception, url)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 91, in _do_retry
    params=params, url=url, retries=retries - 1)
  File "/usr/local/lib/python3.5/dist-packages/prawcore/sessions.py", line 127, in _request_with_retries
        raise self.STATUS_EXCEPTIONS[response.status_code](response)
    prawcore.exceptions.ServerError: received 503 HTTP response

System Information

PRAW Version: 5.4.0
Python Version: 3.5.3
Operating System: MacOS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bboecommented, Apr 5, 2018
1reaction
bboecommented, Apr 5, 2018

The submissions method was deprecated on March 15th, and it looks like it’s no longer available for use:

https://www.reddit.com/r/changelog/comments/7tus5f/update_to_search_api/

Unfortunately, there’s nothing we can do. Though, I’ll actually remove the method now since it no longer works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently receiving 503 error when conducting Reddit ...
503 is HTTP protocol code reserved for informing that server is temporarily unavailable. In almost all cases it means that it doesn't have ......
Read more >
prawcore.exceptions.ResponseException: received 503 HTTP ...
I get "prawcore.exceptions.ResponseException: received 503 HTTP response", but the online documentation does not mention "prawcore" or " ...
Read more >
Exceptions — PRAW 3.6.2 documentation - Read the Docs
This page documents the exceptions that can occur while running PRAW and what they ... Each of these exceptions will likely have an...
Read more >
What is HTTP error 503 and how do you fix it? - IT PRO
An HTTP error 503 is found when your browser encounters a website that is unable to establish a connection with its server. Many...
Read more >
How to Fix the HTTP Error 503 Service Unavailable - Kinsta
The HTTP Error 503 status code indicates that the server is currently unable ... 503 Service Temporarily Unavailable; HTTP Server Error 503 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found