Comments (12)
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.
Do you have 2 factory auth enabled?? That might be a problem because of it
from gist.el.
@arthurnn nope I don't :(
@PhilHudson I'm not using any proxy though.
from gist.el.
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.
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.
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.
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.
I have 2FA enabled.
from gist.el.
Also happening to me.
from gist.el.
One weird trick to fix this
- Ensured my
.gitconfig
used leading tabs instead of spaces [probably unnecessary] - Ensured I had an up-to-date oauth token in my gitconfig under
github.token
,github.oauth_token
, andgithub.password
- Ensured my
url-privacy-level
wasn't set toparanoid
or a list containingagent
[probably unnecessary] - Manually typed my password when prompted instead of pasting it
- Killed and restarted the emacs daemon
Worked like a charm! 💯
from gist.el.
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.
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)
- Trouble getting list of gists from Github Enterprise server HOT 3
- Editing description on non-cached gist makes the gist empty HOT 3
- Setting auth information explicitly with emacs variable HOT 3
- gist-print-current-url from within the gist ? HOT 1
- Setup using initial password prompt does not work HOT 1
- mass deletion HOT 1
- gist-list or gist-buffer Fail with "void-function marshal-get-class-slot" HOT 2
- Add png to gist
- Cant submit a gist nor gist-list
- Update an existing gist?
- gist.el doesn't work with 2 factor Auth HOT 3
- Too many Gists!
- Creating gists fails with exception from (kill-new nil) HOT 2
- Error while creating gist HOT 1
- gist.el should probably (optionally?) avoid tramp
- recursive load error
- Ask about changing filename instead of silently adding an extension.
- listing of gists broken HOT 2
- gist.el doesn't use authsources
- Stale Gist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gist.el.