-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{"error":"No definition for env.MAGENTO_BACKEND_URL"} #33
Comments
i'm also facing this issue .... |
@prabhakaran-wac I gave up on this long time ago. No one from the community ever answered. I am now using upwardjs. |
@magento export issue to JIRA project PWA as Bug |
❌ Cannot export the issue. GitHub repo magento/magento2-upward-connector is not supported in JIRA project PWA and type Bug. |
2 similar comments
❌ Cannot export the issue. GitHub repo magento/magento2-upward-connector is not supported in JIRA project PWA and type Bug. |
❌ Cannot export the issue. GitHub repo magento/magento2-upward-connector is not supported in JIRA project PWA and type Bug. |
Was this thread any help: https://magentocommeng.slack.com/archives/C71HNKYS2/p1621105708128600 |
So, i've runned into this problem. What simple solution is, is to add an fastcgi_param in nginx. For example look in the nginx.conf.sample file from the main magento2 repository and search for
}` in this block you could add a Unfortunately, the hosting provider we used had a custom nginx config that we could't update. |
This thread mentions a fix which I already tried. For me it is no good, as this is some static tweaked upward.yml file that introduces other issues. |
@plamenh, What was the error? |
I'm facing the same error. Using Apache2 and generated upward.yml from running 'yarn build:dev'. I've tried to set the env in virtualhost definition, but no luck. |
@slemos don't bother with this. just spin up an upwardjs server and call it a day. |
@jerschipper The error was the same as the one @slemos received - {"error":"No definition for env.MAGENTO_BACKEND_URL"}. I tried the fastcgi params in the very beginning ( and all kinds of other params and env variables that I could think of, e.g. NODE_ENV, bash, etc.) |
you can use my custom module |
It should be like this fastcgi_param MAGENTO_BACKEND_URL "example.com"; |
This happens with the following upward.yml, generated by my (properly functioning in watch mode) instance:
On the other hand, this random upward.yml I found on stack exchange functions partially (opens homepage, the other pages are not working):
The fact the second one works makes me think the issue is not related to the env.MAGENTO_BACKEND_URL value, but I am no expert. Something related to the security headers maybe? My backend instance does not have a proper ssl certificate, might this be the issue?
The text was updated successfully, but these errors were encountered: