Flow context '#hash' key name can't be deleted

Hi There!

I started using '#rgb' values as keys in the flow context and discovered that there is issue with deleting those keys via the context pane.

I can set the value flow.set('#123456', { ... }) in a function node, I can retrieve the value from from the context using a function node, etc.

When I want to delete the value from the flow context using the context pane, I get the following error in the browser console:

404 NOT FOUND - DELETE http://host:1880/<...>/95e41632f97921ad/#123456?store=memory

Because the variable name begins with '#', the delete request fails.

I tested this on 3.0.2 and 3.1.0-beta4 and got the same error.

It's definitely an edge case using '#' prefix for a key name but it can happen...

Cheers!

Look like the variable name should be URL Encoded before calling the API

Definitely one for a new issue

Done - Flow context ‘#hash’ key name can’t be deleted · Issue #4295 · node-red/node-red · GitHub

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.