Closed wilsonpage closed 7 years ago
I guess this is because my db/datastore hasn't been initialized yet. IIUC we just have to cope with the null
case.
It would be better to not return null if we've created the route. We return a promise so should just resolve later if we're waiting for something to be created.
@samgiles not sure how it works, but I think in this case we're calling .get()
before we've populated anything with .post()
, thus null
.
IIRC empty JSON objects resolve to null
in Android, not sure about IOS.
IIRC empty JSON objects resolve to null in Android, not sure about IOS.
Empy json objects in iOS don't resolve to nil.
My client is throwing:
On this line: https://github.com/mozilla-magnet/magnet-client/blob/b77a61e/lib/app.js#L196
+@samgiles