prasmussen / glot-run

API for running code inside docker containers
https://run.glot.io/
MIT License
147 stars 48 forks source link

I am getting "Missing auth token" even though i am using a correct one. #32

Closed singh-s-sachin closed 5 years ago

singh-s-sachin commented 5 years ago

let headers = [ "Authorization": "f49f383b-0710-494c-ad79-76cdf3970c53", "Content-type": "application/json" ] Alamofire.request("https://run.glot.io/languages/python/latest", method: .post, parameters: body , encoding: JSONEncoding.default, headers: headers).responseJSON

this is my code snippet

sanjayme97 commented 4 years ago

@singh-s-sachin how did you resolve it?

singh-s-sachin commented 4 years ago

Try in this way let headers : [String : String] = [ "Content-type": "application/json", "Authorization":"Token f49f383b-0710-494c-ad79-76cdf3970c53" ]

md-abdul-halim-rafi commented 3 years ago

image

It still saying Missing or wrong access token. I tried with my token, it didn't work. Then I used your one. Still, it doesn't.