You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What were you doing that caused this bug? If used correctly (e.g. sending a JSON payload to the server) I can't reproduce it normally (even if I forget the "username" or "message" parameters from the payload).
The server needs the "username" and "message" parameters from the client. If you just go to http://localhost:2001/ in your browser, it gives you a curl command you can copy and paste to test it:
I'll update the json-server example to make it a little more 'bulletproof', but bear in mind the example codes are just that, examples; I wouldn't recommend using any of them as-is for production use with many users (for example the json-server does no garbage collection of user variables on its own, so if you threw thousands/millions of distinct usernames at it, it wouldn't scale very well).
I have been trying to use the json-server example for Rivescript but getting the error:
Cannot set property 'initialmatch' of undefined
Any reasons why this could occur?
The text was updated successfully, but these errors were encountered: