Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.
This repository was archived by the owner on Jul 14, 2023. It is now read-only.

Wrong output when checking if table exists #57

@Gorgoras

Description

@Gorgoras

Description

When calling the exists() method in tableservice.py and the table doesn't exists, it will print a client request error and then return the False value.

How to reproduce

from azure.cosmosdb.table.tableservice import TableService
service = TableService(account_name="XXXXXX", account_key="XXXXXXXXX")

service.exists(table_name='Example')

If table Example doesn't exist, it will throw something like this in the console:

Client-Request-ID=7aca4ca3-581c-11eb-ab99-107b44503aa4 Retry policy did not allow for a retry: Server-Timestamp=Sat, 16 Jan 2021 17:01:31 GMT, Server-Request-ID=1e3a65d2-b002-0038-6729-ec7d93000000, HTTP status code=404, Exception=Not Found{"odata.error":{"code":"ResourceNotFound","message":{"lang":"en-US","value":"The specified resource does not exist.\nRequestId:1e3a65d2-b002-0038-6729-ec7d93000000\nTime:2021-01-16T17:01:31.9758209Z"}}}.

False

The expected output is just a False.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions