lnklnklnk / ga-bq

Stream raw hit-level Google Analytics data into BigQuery
90 stars 38 forks source link

Error 405 - Requesting https://ga-tracker-dot-myproject.appspot.com/collect #30

Open jwest75674 opened 3 years ago

jwest75674 commented 3 years ago

Error 405 - Requesting https://ga-tracker-dot-myproject.appspot.com/collect

I seem to be having sporadic issues across multiple websites relating to error 405 responses from ga-bq.

I am wondering if anyone else has reported this issue, or might have insight as to possible causes and fixes...

This error seems to cause some websites to only partially load, others it is specific pages, like a wordpress based elementor editor failing to load completely.

image

image

jwest75674 commented 3 years ago

Okay, I am a little over my head here, but I beleive something browser side is sending POST requests instead of GET. It seemed during testing that adblockers are likely related, maybe DNT, not totally sure.

Reading this Stack: https://stackoverflow.com/questions/7989911/google-app-engine-405-method-not-allowed Mentioned ensuring the main handler included a function def post()

Literally just copied the get function to the new name post, and wrapped with a try except for my own sanity. Seems to have cleared the errors, though, probably by simply catching the exception. Could use someone who knows what they're doing to take a look!