Skip to content
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

Adding a recipe to Grocy produces white page with white box #169

Closed
Camreyn opened this issue Oct 14, 2022 · 9 comments
Closed

Adding a recipe to Grocy produces white page with white box #169

Camreyn opened this issue Oct 14, 2022 · 9 comments

Comments

@Camreyn
Copy link

Camreyn commented Oct 14, 2022

image

Clicking on ADD TO GROCY brings this page up with these errors when inspected.

Below is a screen grab of my grocy link, keep in mind both are the latest and grocy is running is Home Assistant.

image

These are very standard configs with no edits to the configs.

Any help would be appreciated, thank you!

@georgegebbett
Copy link
Owner

All that CORS stuff is a bit weird - does it work if you install this chrome extension and enable it for that site? https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf

@georgegebbett
Copy link
Owner

A lot of the grocy communication happens in the browser because at the time I knew no better lol

@Camreyn
Copy link
Author

Camreyn commented Oct 17, 2022

Thank you for the swift reply, I was out for the weekend, that is on me, I apologize.

I installed the extension on firefox but I am still getting the same error. Cool extension however, added to my tool-belt.

@Camreyn
Copy link
Author

Camreyn commented Oct 17, 2022

Ignore previous, I refreshed the console because I was not convinced. I still get the same white page but the console does appear different now.
image

@creuzerm
Copy link

creuzerm commented Jan 6, 2023

I was getting this error too. Somewhere in Grocy's instructions or one of the other tools that plug into Grocy there is the suggestion of setting a port so we can access Grocy direction and not route through HomeAssistant.

HomeAssitant->Settings->Addons->Grocy->Configuration->Network

Add port 9192 in that Network section. This doesn't appear to alter anything about the HomeAssistant integration, but now allows you to access Grocy directly, outside of HomeAssitant, by using that port.

This looks to stop the CORS errors which I think are from trying to access Grocy on the HomeAssistant path from outside HomeAssistant. Different IPs is different domains, so CORS is doing it's job.

Now, I get a 500 error when I try to add a recipe, but that's something I haven't dug into to try to sort out, and likely for a different issue thread if somebody already started one.

@Camreyn
Copy link
Author

Camreyn commented Jan 6, 2023

@creuzerm I can do as you did with the port but when I feed the http://192.168.1.39:9192/api/ into Recipe Buddy, it says it cannot connect to grocy. But if I go to that link in my web browser it brings me to the grocy api...

@creuzerm
Copy link

creuzerm commented Jan 7, 2023

@TheEndOfYoRHa I am having the same issue as noted in #256

@dinvisible1
Copy link

I cant connect to my grocy instance, even with providing the the url and api key

Untitled

@georgegebbett
Copy link
Owner

Hi all, apologies for the delay in getting back to you all on this - I have just released V2 which takes the Grocy URL as an env var into the Docker container and has a vastly simplified setup process and architecture - please have a go with this and open a new issue if you have further problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants