Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

HTTP Error 406: Not Acceptable

3 Posts
2 Users
0 Reactions
1,428 Views
(@flyer)
Active Member
Joined: 4 years ago
Posts: 8
Topic starter  

Hi, so I loaded up the 4.372Files4-8-2021 image on my RaspPi, and it stops on boot up with a urllib.error.HTTPError: HTTP Error 406: Not Acceptable and seems to stop on that. I did some searches but just am not savvy enough in this area to figure out the answer. Anything I can do?

 

HTTPerror406

   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
 

Yep, a server error where update files are stored is causing this. Here are a couple ways in which to fix it;

https://www.livesectional.com/community/raspberry-pi-questions/rpi-refuses-to-connect/#post-885

Let us know if you have any troubles following it. - Mark


   
ReplyQuote
(@flyer)
Active Member
Joined: 4 years ago
Posts: 8
Topic starter  

Commenting out the testupdate() function did the trick. Thank you! 

David

I tried the Map Utilities> Check for update and here's the results:

urllib.error.HTTPError

urllib.error.HTTPError: HTTP Error 406: Not Acceptable

Traceback (most recent call last)

  • File "/usr/lib/python3/dist-packages/flask/app.py", line 2309, in __call__

    return self.wsgi_app(environ, start_response)
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 2295, in wsgi_app

    response = self.handle_exception(e)
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 1741, in handle_exception

    reraise(exc_type, exc_value, tb)
  • File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise

    raise value
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app

    response = self.full_dispatch_request()
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request

    rv = self.handle_user_exception(e)
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception

    reraise(exc_type, exc_value, tb)
  • File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise

    raise value
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request

    rv = self.dispatch_request()
  • File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)
  • File "/NeoSectional/webapp.py", line 233, in test_for_update

    testupdate()
  • File "/NeoSectional/webapp.py", line 1697, in testupdate

    if checkforupdate() == True:
  • File "/NeoSectional/webapp.py", line 1675, in checkforupdate

    dlftpfile(source_path + verfilename, target_path + verfilename)  # download version file from neoupdate
  • File "/NeoSectional/webapp.py", line 1659, in dlftpfile

    wget.download(url, filename)
  • File "/usr/local/lib/python3.7/dist-packages/wget.py", line 526, in download

    (tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)
  • File "/usr/lib/python3.7/urllib/request.py", line 247, in urlretrieve

    with contextlib.closing(urlopen(url, data)) as fp:
  • File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen

    return opener.open(url, data, timeout)
  • File "/usr/lib/python3.7/urllib/request.py", line 531, in open

    response = meth(req, response)
  • File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response

    'http', request, response, code, msg, hdrs)
  • File "/usr/lib/python3.7/urllib/request.py", line 569, in error

    return self._call_chain(*args)
  • File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain

    result = func(*args)
  • File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default

    raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 406: Not Acceptable

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.

To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

  • dump() shows all variables in the frame
  • dump(obj) dumps all that's known about the object

   
ReplyQuote
Share: