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

Cloud logging broken: undefined flow.get('cloudURL') #32

Open
memcpy-rand-rand-rand opened this issue Sep 6, 2021 · 2 comments
Open

Comments

@memcpy-rand-rand-rand
Copy link

Trying to figure out why my tiltpi is no longer logging to Brewfather. The toast pops up saying logging request sent, but there is no subsequent toast or information and the request is never received by Brewfather.

  • tiltpi can reach the internet.
  • brewfather endpoint working correctly (tested using tilt app on phone)
  • have had a couple of prior brews work fine on the system
  • tiltpi rebooted a couple of times

Dived in to attempt a little Node Red debugging (using node.warn)

  • In Setup Cloud Post node, the flow.get('cloudURL') was returning undefined.
  • Re-setting the Cloud URL had no effect
  • In trying to debug further, I added a warn to the Custom CloudURL node to tell me the value of msg.payload. Not actually the thing I was trying to look at, so I had to flip the switch "Use Default Cloud URL for All" to show anything. "msg.payload" was initially "true" when entering the function; which I guess matches the "on" value for the setting. set it back to off, "msg.payload" back to "false" as expected.

After that it looks like the flow.get('cloudURL') starts to succeed.

It looks like there's a logic bug buried in the node graph/code which causes this value to be undefined somehow and cause subsequent logging failures.

Happy to provide any logs etc.

@noahbaron
Copy link
Collaborator

noahbaron commented Sep 8, 2021 via email

@memcpy-rand-rand-rand
Copy link
Author

memcpy-rand-rand-rand commented Sep 8, 2021 via email

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

2 participants