Giter Club home page Giter Club logo

Comments (12)

PhilHudson avatar PhilHudson commented on August 22, 2024

Suspect this may be a duplicate of #36. If so, gist.el (or the appropriate gh-*.el) should catch this error and give a more meaningful message with a suggestion for remediation ("Add gist.github.com to the Elisp variable url-proxy-services and/or the OS environment variable no_proxy").

from gist.el.

arthurnn avatar arthurnn commented on August 22, 2024

Do you have 2 factory auth enabled?? That might be a problem because of it

from gist.el.

darthdeus avatar darthdeus commented on August 22, 2024

@arthurnn nope I don't :(

@PhilHudson I'm not using any proxy though.

from gist.el.

darthdeus avatar darthdeus commented on August 22, 2024

Ha I think I've managed to fix it. The problem was that I had mixed tabs and spaces in my ~/.gitconfig ... very weird.

from gist.el.

prathamesh-sonpatki avatar prathamesh-sonpatki commented on August 22, 2024

I was also getting same error. I removed Github username and auth token from .gitconfig file and next time when I ran gist-list, it asked again for Github username & password. But after that everything worked.

from gist.el.

whatyouhide avatar whatyouhide commented on August 22, 2024

I did everything mentioned in this issue but I'm still getting the JSON readtable error. I consistently used tabs in my ~/.gitconfig. When I call M-x gist-list, it asks for my username and my password but then stores my username and my password in ~/.gitconfig (no tokens anywhere).

I don't have 2FA enabled. This error appears whatever gist.el command I use.

I managed to fix the behaviour by manually setting github.password and github.oauth-token in ~/.gitconfig to a dedicated token, but probably gist.el should do this automatically? I'm installing both gh and gist from Melpa.

from gist.el.

ericychoi avatar ericychoi commented on August 22, 2024

This is happening for me now. Funny thing is it used to work fine, only recently it started breaking. Maybe a recent API update on github side?

from gist.el.

ericychoi avatar ericychoi commented on August 22, 2024

I have 2FA enabled.

from gist.el.

rgrinberg avatar rgrinberg commented on August 22, 2024

Also happening to me.

from gist.el.

jmromer avatar jmromer commented on August 22, 2024

One weird trick to fix this

Worked like a charm! 💯

from gist.el.

DinoChiesa avatar DinoChiesa commented on August 22, 2024

I am also getting the dreaded "JSON readtable error" message, when i run gist-list. This used to work. I have set my Personal Access Tokens, and am debugging the gh-url.el code, and I can see the token is being sent in the appropriate header. This is in gh-url-run-request . When I look at the return response from api.github.com, this is what I see:

`
HTTP/1.0 403 Forbidden
Cache-Control: no-cache
Connection: close
Content-Type: text/html

Request forbidden by administrative rules. Please make sure your request has a User-Agent header (http://developer.github.com/v3/#user-agent-required). Check https://developer.github.com for other possible causes.
closed
`

It turns out I had an advice that was setting url-user-agent to nil. This was making the github API unhappy. Removing that advice allowed everything to proceed.

from gist.el.

sigma avatar sigma commented on August 22, 2024

interesting. I'll definitely update gh.el to ensure url-privacy-level and url-user-agent are locally set to acceptable values. Thanks so much for sharing !

from gist.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.