-
-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using synchronous client to call Reports().get_report_document(), the following error occurs.
367 if download or file or ("decrypt" in kwargs and kwargs["decrypt"]):
368 compression_algorithm = res.payload.get("compressionAlgorithm")
--> 369 with httpx.Client(
370 proxies=self.proxies,
371 verify=self.verify,
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'
To Reproduce
Steps to reproduce the behavior:
- Import the
Reportsclient fromsp_api.api. - Simply call
Reports().get_report_document()and it will happen.
Expected behavior
Should be able to run smoothly as before.
Desktop (please complete the following information):
- OS: N/A
Additional context
I think it has to do with the added async support (requests → httpx), but some API differences were missed during the migration.
In addition, the client from sp_api.asyncio.api works well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working