Posted: July 26, 2018 at 5:50 am
When I try to log in to the EE4 App I get an error message:
I haven’t really found a solution that worked in the support forums, so I hope you can help me here. |
|
Hi, The documentation has a solution for that error message: |
|
I’ve tried that solution but it doesn’t solve my problem. Is there a difference with https? |
|
No difference. Can you outline exactly what you’ve tried so we’re not telling you to try things you’ve already tried? |
|
I’ve tried what you’ve told me and this:
So at the moment both of those fixes are active in my htaccess file. I also tried typing the url at app login with http, https and without. |
|
This is what my .htaccess looks like.
|
|
The second “fix” you list is no longer recommended, so that part can be changed back. You could also try temporarily removing the WordFence rules to see if there’s a conflict. Also, a few users have reported that installing the Application Passwords plugin resolved their issues. You can download the Application Passwords plugin from wordpress.org: |
|
I’ve tried all three, but I still get the error message… |
|
May I ask what’s the URL that you’re inputting into the Website URL field of the app? |
|
spaetverkehr.de |
|
If you temporarily deactivate all other plugins (besides Event Espresso) and temporarily switch to the default WordPress theme, do you still get the error from the app? |
|
yup. |
|
That narrows things down to a server configuration issue where the server isn’t allowing the Authorization headers to be passed. Usually the .htaccess edit will do the trick, but not always. We know that the REST API on your site can send a valid response if it’s a request that doesn’t require authorization, e.g. Can you contact your host and ask them if they can allow the HTTP_AUTHORIZATION header? |
|
They told me edit my htaccess and add:
So now it looks like this (I removed all other RewriteRules):
But I still get the error. I’m all out of ideas… |
|
Okay, I found something interesting. The Application Passwords plugin was giving me this error message:
So I did as recommended on the Wiki and added But as long as I don’t know if this is of any help (no combination of RewriteRules has solved the original problem), but it feels like something is definitely wrong here :D. |
|
You should go with the .htaccess access rule suggested by the host. If the Authorization header still isn’t getting passed with their suggested .htaccess rule alone they should be able to investigate further. Here’s how to make sure the site is using the host’s suggested .htaccess alone: 1) Deactivate the WordFence plugin |
|
Thanks for your continued support! I tried your 7 steps – no change. The RewriteRule definitely does not get overwritten though. My host is asking what requirements the plugin has for their server (very open question, I know). What should I tell them? |
|
Specific to the issue at hand, the app requires the server allowing the Authorization header to be passed. You can point them to this Github issue where an engineer from WPEngine (another web host) left some follow up: |
|
Here’s an additional troubleshooting tip from a related issue on Github: https://github.com/WP-API/Basic-Auth/issues/35#issuecomment-403703396 |
|
The support post ‘EE4 App "Invalid Response from the upstream server"’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.