<@ULVA73B9P> How do I fix this error: "Unable to r...
# ask-marvin
a
@Marvin How do I fix this error: "Unable to read the specified config file. Reason: mapping values are not allowed here in "prefect.yaml", line 21, column 15. Skipping.", it happens after I run prefect deploy? The line is "- name: test-name":
Copy code
deployments:
  - name: test-name
      entrypoint: flows/test.py:test
m
Your YAML configuration error is due to incorrect indentation. YAML is sensitive to spaces, and the error message suggests that there's a problem with how your configuration is structured. Here's a corrected version of your `prefect.yaml`:
Copy code
yaml
deployments:
  - name: test-name
    entrypoint: flows/test.py:test
Make sure that the
entrypoint
line is correctly aligned under
name
. YAML requires consistent indentation, and mixing spaces and tabs can lead to such errors. For more details on configuring Prefect deployments, you can refer to the Prefect YAML documentation. If you encounter further issues, you might want to run
prefect init
to see if Prefect provides any additional configuration guidance based on your project's structure.