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 and
TypeError: 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.