We had prefect working great, but then we migrated...
# ask-community
j
We had prefect working great, but then we migrated to the new version and now my clients are not connecting. If I run the "~/.local/bin/prefect flow ls" command from my command line, I get this error: "
File "/home/jmukherjee/.local/lib/python3.10/site-packages/prefect/cli/flow.py", line 34, in ls
flows = await client.read_flows(
File "/home/jmukherjee/.local/lib/python3.10/site-packages/prefect/client/orchestration.py", line 489, in read_flows
return pydantic.parse_obj_as(List[Flow], response.json())
File "/usr/local/lib/python3.10/dist-packages/httpx/_models.py", line 762, in json
return jsonlib.loads(self.content, **kwargs)
File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"
I think it is connecting since I can put a print in and get Response [200 OK]. But it is an empty response or something. Any ideas on how I can troubleshoot this? Fixed! We were running Cosmos in front of Prefect and it was having authentication on which conflicted with prefect. Anyway, turning that off fixed it!
🙌 1
✅ 1