Error parsing metadata using python datacatalog

2k views Asked by At

I'm trying to update attached tag to tables in data catalog using python : enter image description here

And i recieve this error : enter image description here E0102 16:29:36.671000000 13508 src/core/ext/transport/chttp2/transport/hpack_parser.cc:1228] Error parsing metadata: error=invalid value key=content-type value=text/html; charset=UTF-8

For creating tag template and attaching tag to tables, they work perfectly.

1

There are 1 answers

0
Piotr Zalas On

It seems that the error comes from gRPC library when parsing response from Data Catalog server. There is a similar bug reported. In the bug there is a suggestion that the gRPC client error may happen when Google Frontend server returns error.

It's hard to find the cause based on the attached error message and code snippet. To debug the problem I recommend:

  • Printing tag content and credentials from the application and doing the request from command line (e.g. with grpc_cli or via REST API with curl) to see if some error is returned from the server.
  • Alternatively, using some transport proxy (Wireshark, Fiddler, or similar) to see passed messages and responses.
  • Downgrading gRPC library to the version where the header parsing error isn't logged until the problem is fixed.