jwass / geojsonio.py

Open GeoJSON data on geojson.io
BSD 2-Clause "Simplified" License
121 stars 25 forks source link

GitHub removed support for anonymous gists #11

Closed chesterharvey closed 3 years ago

chesterharvey commented 6 years ago

I kept getting GitHubError: 422 Validation Failed from github3.py when running geojsonio.display(json, force_gist=True). Then I found issue 795 on the github3.py repo. Are there any plans already in the works to pass GitHub account info for pushing geojsons to authorized gists?

zneu commented 6 years ago

Similar issue:

     35                 '{"message": "Requires authentication"}'
     36             )
---> 37             raise error_for(r)
     38     return auth_wrapper
     39 

AuthenticationFailed: 401 Requires authentication
tomjm1 commented 6 years ago

Even I face the same:

https://stackoverflow.com/questions/50192549/display-in-geojsonio-gives-401-error

nittolese commented 6 years ago

I have the same issue with geojsonio.display(file, force_gist=True)

Please update with alternatives to anonymous gist as they have been deprecated: https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/

jwass commented 6 years ago

I suppose the right way to fix this is to initialize a github3 API object and pass it in to .display().

HADDADENICAR commented 6 years ago

Same problem here ? jwass could you please explain more how to do that !?

Graygood commented 4 years ago

same here

Worked yesterday like a charm