Sosuno / MMO_gcloud_backend

Backend service for MMO game in google cloud using RESTful service for my university project
1 stars 0 forks source link

CRON 403 #28

Open wojtekj89 opened 5 years ago

wojtekj89 commented 5 years ago

Próbuję wymusić przeliczenie przez http request, ale mimo podania id sesji admina masterEwa mam 403

url = "https://test-dot-solwit-pjatk-arc-2018-gr4.appspot.com/game/cron"

payload = ""
headers = {
    'Authorization': "6e1dc052-1f7f-11e9-912a-cd5882aa6d8d",
    'X-Appengine-Cron': "admin",
    'cache-control': "no-cache"
    }

response = requests.request("GET", url, data=payload, headers=headers)

W datastore istnieje sesja i ID się zgadza. Czegoś mi brakuje?

Jak idzie request bez X-Appengine-Cron headera to jest 502 Bad Gateway

Sosuno commented 5 years ago

502 wyrzuca, kiedy brakuje mu pamieci - nie mam pojecia gdzie to naprawic