To use the TTN webhook, the port needs to be publicly open. For this, one option is to use a port forwarder in your router. A quick alternative is to expose your TagoCore instance using ngrok (which has a free tier). This service provides a custom URL for your TagoCore so you can access the instance outside the local network.
thanks for the info! I now used ngrok alternative localtunnel to expose the port.
Now it works but hits the next error. Find the TTN plugin log:
1****4:57:31.237]: TTN/TTI-Integration started at port 8001
[22:13:31.524]: Thu, 30 Nov 2023 21:13:31 GMT express deprecated req.host: Use req.hostname instead at ../.tagocore/Plugins/e50736acf7ed122a5924658f2ddde7b9/build/index.js:66:21297
[22:13:31.561]: Error inserting data
[22:13:31.569]: ZodError: [
{
“code”: “invalid_type”,
“expected”: “string”,
“received”: “undefined”,
“path”: [
0,
“variable”
],
“message”: “Required”
}
]
at new ZodError (/snapshot/app/node_modules/zod/lib/ZodError.js:81:28)
at handleResult (/snapshot/app/node_modules/zod/lib/types.js:115:21)
at ZodArray. (/snapshot/app/node_modules/zod/lib/types.js:250:47)
at step (/snapshot/app/node_modules/zod/lib/types.js:59:23)
at Object.next (/snapshot/app/node_modules/zod/lib/types.js:40:53)
at fulfilled (/snapshot/app/node_modules/zod/lib/types.js:31:58)