prasmussen / glot-run

API for running code inside docker containers

Home Page:https://run.glot.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

singh-s-sachin opened this issue · comments

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

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

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

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.