I am trying to deploy Django code in an AWS Elastic Beanstalk environment. I get a deployment error:
The configuration file __MACOSX/OriginalNewConfig-deploy/.ebextensions/._python.config in application version OriginalNewConfig2-deploy contains invalid YAML or JSON. YAML exception: unacceptable character '' (0x0) special characters are not allowed in "<reader>", position 0, JSON exception: Unexpected character () at position 0.. Update the configuration file.
Run codeHide resultThe python.config file (in the .ebextensions folder) looks like this:
---
container_commands:
01_wsgipass:
command: "echo \"WSGIPassAuthorization On\" >> ../wsgi.conf"
packages:
yum:
libjpeg-turbo-devel: []
Run codeHide resultThe deployment code that I use seems to have been successfully deployed before (by the original developer), so I donβt understand why the error is being reported.
I deploy using the Download and Deploy button on the AWS EB control panel.
source
share