Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing requirements and authentication failure -- 404 #2

Open
stefanbj opened this issue Oct 18, 2024 · 0 comments
Open

Missing requirements and authentication failure -- 404 #2

stefanbj opened this issue Oct 18, 2024 · 0 comments

Comments

@stefanbj
Copy link

  1. The following additional requirements seems to be needed: geographiclib tz lxml python-dateutil requests_oauthlib
  2. The kv_auth fails to authenticate. likely Oauth2 is now required.

kv_auth Error:

`PS C:\Users\luser> kv_auth.exe
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Scripts\kv_auth.exe_main
.py", line 7, in
sys.exit(main())
~~~~^^
File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\kartaview_tools\kv_auth.py", line 112, in main
kt.write_config_file(kv_auth(osm_oauth()))
~~~~~~~~~^^
File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\kartaview_tools\kv_auth.py", line 36, in osm_oauth
fetch_response = oauth.fetch_request_token(OSM_REQUEST_TOKEN_URL)
File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests_oauthlib\oauth1_session.py", line 282, in fetch_request_token
token = self._fetch_token(url, **request_kwargs)
File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests_oauthlib\oauth1_session.py", line 364, in _fetch_token
raise TokenRequestDenied(error % (r.status_code, r.text), r)
requests_oauthlib.oauth1_session.TokenRequestDenied: Token request failed with code 404, response was '

<title>OpenStreetMap</title> OpenStreetMap logo

File not found

Couldn't find a file/directory/API operation by that name on the OpenStreetMap server (HTTP 404)

Feel free to contact the OpenStreetMap community if you have found a broken link / bug. Make a note of the exact URL of your request.

</div>
'. PS C:\Users\stefanb> kv_auth.exe -h Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Scripts\kv_auth.exe\__main__.py", line 7, in sys.exit(main()) ~~~~^^ File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\kartaview_tools\kv_auth.py", line 112, in main kt.write_config_file(kv_auth(osm_oauth())) ~~~~~~~~~^^ File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\kartaview_tools\kv_auth.py", line 36, in osm_oauth fetch_response = oauth.fetch_request_token(OSM_REQUEST_TOKEN_URL) File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests_oauthlib\oauth1_session.py", line 282, in fetch_request_token token = self._fetch_token(url, **request_kwargs) File "C:\Users\stefanb\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests_oauthlib\oauth1_session.py", line 364, in _fetch_token raise TokenRequestDenied(error % (r.status_code, r.text), r) requests_oauthlib.oauth1_session.TokenRequestDenied: Token request failed with code 404, response was ' <title>OpenStreetMap</title> OpenStreetMap logo

File not found

Couldn't find a file/directory/API operation by that name on the OpenStreetMap server (HTTP 404)

Feel free to contact the OpenStreetMap community if you have found a broken link / bug. Make a note of the exact URL of your request.

</div>
'. PS C:\Users\luser>`
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

No branches or pull requests

1 participant