Mar 10
400 Error Creating Shortlink — Backend .find() Null
Hi Roo team,
I'm getting a consistent 400 error when trying to create a new shortlink via the API.
Request:
POST https://api.roo.bz/v1/urls
Headers: x-api-key: [valid key], Content-Type: application/json
Body (attempt 1 — with customDomain):
{"url": "https://www.innovaty.co/features?via=leandolini", "customDomain": {"domain": "go.innovaty.co", "slug": "features", "alternativeSlug": true}}
Body (attempt 2 — minimal, no customDomain):
{"url": "https://www.innovaty.co/features?via=leandolini"}
Response (both attempts):
json
{"id": "", "message": "Cannot read properties of undefined (reading 'find')"}
What works fine: GET /v1/urls and PATCH /v1/urls/{id} both work correctly with the same API key. I have two existing shortlinks on go.innovaty.co that I can list and update without issues.
Looks like a null reference in the backend — the .find() call is on an undefined object. Happy to test again if you push a fix!
Custom domain: go.innovaty.co
Thanks!
Pending