I have generated code using Openapi with https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get but its showing issue with the deserialize method in it getting below error
klass.attribute_map[attr] in data andTypeError: a bytes-like object is required, not 'str'
unable to solve this issue
@shraddha anikhindi welcome to the Atlassian community
The TypeError: a bytes-like object is required, not 'str' indicates that a function or operation expects data in a binary format (bytes), but it received a standard Python string (str) instead.
You will need to update your code so it passes the proper object type to the API.
It looks like you're new here. Sign in or register to get started.