## The problem
Issue marqo-ai/marqo#399 (closed, 11 comments): **Describe the bug** As mentioned in [this doc](https://docs.marqo.ai/0.0.16/API-Reference/search/): Marqo provides the option for a weighted query in the form of a `dict` input **To Reproduce** search using a dict `result = mq.index("my-first-index").search({'adventure': 1.0, 'time': -2.0}, searchable_attributes=['Title'])` ``` MarqoWebError: MarqoWebError: MarqoWebError Error message: {"detail":[{"loc":["body","q"],"msg":"str type expected","type":"type_error.str"}]} status_code: 422, type: unhandled_error_type, code: unhandled_error, link: Traceback: File...

## What fixed it
[ILidzhade (reporter)]: The MarqoWebError 422s came from the server running an old Marqo version while the client was upgraded. Upgrade the docker service too: docker pull marqoai/marqo:latest with --gpus all on GPU machines, then recreate the index. The reporter confirmed everything works after that.