Skip to content
Advertisement

getting, TypeError: json cannot serialize object of type ‘byte. When loading table to big query via server

When I run the following code on the server (I think, when reading the json file with google application credentials), I get the following error:

JavaScript

Json as( source here ):

enter image description here

My Code:

JavaScript

When I run it with spyder IDE on my local computer with windows installed, there is no problem.

Advertisement

Answer

I solved the problem. The python version installed on the server was 3.6.8. I upgraded this version to python 3.8.12 and the problem was solved.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement