dstotijn / go-notion

Go client for the Notion API.
MIT License
380 stars 39 forks source link

"Failed to parse HTTP response" when querying the database if the database contains a field with the url type #12

Closed maksim77 closed 3 years ago

maksim77 commented 3 years ago

If database contains a field with the url type an error occurs:

notion: failed to parse HTTP response: json: cannot unmarshal string into Go struct field DatabaseQueryResponse.results of type notion.URL

Originally posted by @maksim77 in https://github.com/dstotijn/go-notion/issues/11#issuecomment-847107164

dstotijn commented 3 years ago

I misinterpreted the docs; doing a fix now, should be there in 30 min or so.

dstotijn commented 3 years ago

Should be fixed in v0.3.1.