Action to POST or GET to listening server error

medzec

n3wb
Mar 15, 2021
6
8
Portland USA
I've been posting results of deepstack to an UNraid server that has n8n running that posts to MariaDB.

Original intention was to count how many pedestrian walkers and cyclists ride by every day -> average is over 500! (This is a positive in my opinion)

Then, integrating with Automatic License Plate Recognition - High Accuracy ALPR, I'm getting some great plate recognition and starting a local database of neighbors . 'Big Brother on the Corner'?



Somewhere in the last few weeks the POST/GET stopped working.
Because my IT skills are dependent on Google and Stack Overflow, it took me all weekend to diagnose.
Thanks to a program called 'Fiddler Everywhere' I found the culprit!

The Action 'TEST' worked every time.
Only when the trigger was activated by BlueHost Trigger/Action did the POST/GET fail with 404.

Using Fiddler I was able to actually see what the computer was sending.

I was not specifying headers. So BlueIris default User-Agent was sending a non UTF 8 Chinese or Mandarin symbol.

Here is the exact User-Agent symbol

Code:
User-Agent: 䈐

Once I specified

Code:
User-Agent:MyPeopleCounter

it worked great! I believe the part after "User-Agent: " can be anything you want.

I sacrificed my weekend so you don't have to.
 

Attachments

  • The fix.PNG
    The fix.PNG
    30.9 KB · Views: 9
  • Good.PNG
    Good.PNG
    17.6 KB · Views: 8
  • Bad Header.PNG
    Bad Header.PNG
    14.6 KB · Views: 8
  • Like
Reactions: Mike A.