I'm getting the above error when passing a request to the HTTP request node. Underneath it it says "Invalid purpose". There's no other debugging info. A change node is passing 2 msg.headers, setting msg.rejectUnauthorized to false, and passing a data parameter as the msg. payload.
I know it's not an issue with either the request itself or with SSL for two reasons. First, the exact same request in the exact same machine using curl on a command line works perfectly fine and in fact if I run the curl command through the exec node in Node Red it also works fine. Second, at one point it worked perfectly fine; after restarting Node Red it started throwing that error.
I have no idea what Invalid Purpose means let alone how to fix it so was hoping someone here might know what's going on.