Open hugoarroyo opened 1 month ago
Perhaps the API returns 400 Bad request on auth error. Could you check the content of /etc/monocle-secrets/.secrets
in the pod to verify the GITHUB_TOKEN is correct?
I verified, and the token is there, and is valid since I can use it to connect to GitHub graphql api using thunder client. but the crawler process returns
Stream produced a fatal error {"index":"cbi-marketing","crawler":"marketing-crawler","stream":"TaskDatas","err":["2024-07-24T01:20:24.050374029Z",{"contents":{"fetch_error":"parse failure: Error in $: Failed reading: not a valid json value at '<html><body><h1>400Badrequest<h1>'","request":{"body":"{\"operationName\":\"GetRateLimit\",\"query\":\"\\n query GetRateLimit {\\n rateLimit {\\n used\\n remaining\\n resetAt\\n }\\n }\\n \",\"variables\":null}","resp":"<html><body><h1>400 Bad request</h1>\nYour browser sent an invalid request.\n</body></html>\n"}},"tag":"RateLimitInfoError"}]}
I followed to the letter your k8s deployment https://github.com/change-metrics/monocle/blob/master/k8s/README.md
I'm using this versions
quay.io/change-metrics/monocle:1.11.1
I used the github provider
I validated my github token and added to the secret
kubectl create secret generic monocle-secrets --from-file=.secrets -n monocle
but when the crawler starts, I always see this error in the log
Thanks