jsonblob icon indicating copy to clipboard operation
jsonblob copied to clipboard

Create Gist option is not working

Open srimaln91 opened this issue 2 years ago • 4 comments

Hi,

Thank you for this awesome project!

I would want to raise that the Create Gist option is not working on the website. It receives 401 HTTP error from https://api.github.com

image

I would like to contribute if there is anything to be done in the code.

Thank you.

srimaln91 avatar Jan 12 '22 18:01 srimaln91

Thanks, @srimaln91. I'll see about fixing it. There's probably a header that's missing from the allowed CORS headers if you want to try to troubleshoot it.

tburch avatar Jan 12 '22 20:01 tburch

I'll have to keep digging around here. It's something to do with the CORS settings, but I'm not sure what. It seems like the Micornaut CORS settings aren't working, but I don't know why...

tburch avatar Jan 13 '22 04:01 tburch

The more I look at this, I think it's actually been broken for a long time... I think I support needs to be added for Github Authorization Tokens with "scopes":["gist"]. Example

tburch avatar Jan 13 '22 06:01 tburch

Github deprecated the anonymous gist API a long long time ago.

tburch avatar Jan 13 '22 15:01 tburch