Highlights:

Context:

A buddy was helping test out the site for me. He ran into an error after submitting his payment details. He said his browser would just refresh after clicking ‘submit.’

I checked the logs on my server in console.cloud.google.com, and saw that there was a simple KeyError for my dictionary.

https://i0.wp.com/youngandai.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-03-at-15.18.52.png?fit=525%2C224&ssl=1

This type of issue is easy to debug on my computer. However, I had already tested this out locally, and the data passed back shouldn’t be missing the <code>token_id</code> key.

Google thankfully has been developing a debugger tool for our web applications hosted on their servers. However, it was a mission to set it up, since support for Python 3.7 is still in alpha and very buggy. Here’s a breakdown of my issues and how I resolved them:

Production background:

Issues I encountered:

Issue: Trying to pip install google-python-cloud-debugger. But keep getting this message:

“Could not find a version that satisfies the requirement google-python-cloud-debugger (from versions: ) No matching distribution found for google-python-cloud-debugger”

Resolved: According to documentation, google-python-cloud-debugger only works for Python 2.7 or Python 3.6. BUT, some parts of the documentation mention that it supports Python 3.7 as well.