StateraUser Posted December 30, 2025 Posted December 30, 2025 I just added a webhook through the web dashboard at https://r.loyverse.com/dashboard/#/webhooks. However, when I try to test the notification from the web interface, the request returns an error like this: { "result": "Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (String)\"<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n <title>Server Error</title>\n\n <style>\n /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a{background-color:transparent}code{font-family:monospace,monospace;font-size:1em}[hidden]{display:none}html{font-family:system-ui,-apple-sy\"[truncated 6109 chars]; line: 1, column: 2]" } The request never reaches my application. Can anyone help me with this?
Yasuaki Posted January 20 Posted January 20 Hello. Thank you for your post. Loyverse expects the response from your server to be JSON (starting with {). Instead, it received a response starting with <. This is the opening bracket for HTML tags. [Source: (String)"<!DOCTYPE html>... <title>Server Error</title>...: This means your web server or framework caught an error and returned a standard "500 Internal Server Error" or "404 Not Found" HTML page to Loyverse.
Recommended Posts