Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: can't concat str to bytes #8

Open
xulifan opened this issue Apr 24, 2020 · 0 comments
Open

TypeError: can't concat str to bytes #8

xulifan opened this issue Apr 24, 2020 · 0 comments

Comments

@xulifan
Copy link

xulifan commented Apr 24, 2020

Here is the simple code when running with python 3.8:

response1 = bts_client.list_instances()
for instance in response1.instances:
    response2 = bts_client.list_tables(instance.name)
    for table in response2.tables:
        print(instance.name, table.name)

Here is the error message:
File "/usr/local/lib/python3.8/site-packages/baidubce/services/bts/bts_client.py", line 205, in list_tables
path = bts.URL_PREFIX + b"/" + instance_name + b"/tables"
TypeError: can't concat str to bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant