cojohn / node-urban-airship Goto Github PK
View Code? Open in Web Editor NEWSimple wrapper for the Urban Airship API in Node.js.
License: MIT License
Simple wrapper for the Urban Airship API in Node.js.
License: MIT License
Blah.
Error: Payload length must be less than or equal to 256 bytes
at IncomingMessage.UrbanAirship._transport (/lib/urban-airship.js:160:14)
at IncomingMessage.EventEmitter.emit (events.js:115:20)
at IncomingMessage._emitEnd (http.js:366:10)
at HTTPParser.parserOnMessageComplete as onMessageComplete
at CleartextStream.socketOnData as ondata
at CleartextStream.CryptoStream._push (tls.js:495:27)
at SecurePair.cycle (tls.js:849:20)
at EncryptedStream.CryptoStream.write (tls.js:230:13)
at Socket.ondata (stream.js:38:26)
at Socket.EventEmitter.emit (events.js:88:17)
It should probably be noted that the /api/push/
endpoint requires the trailing /
.
Just to save tracking down that 405 or 301 response.
Invalid device token
error. But it works fine if I include the android_channel
key instead the device_token
one."error":"Could not parse request body.", "error_code":40282,"details":{"error":"Invalid device token myDeviceToken"}
Line 186 is where the error gets created
Line 172 is where you check for status codes. Seems like 202 should be included in that array, to avoid returning an error when a successful push has occurred.
I am trying to use this module with v3 API and its not working as intended.
I have found two issues:
We might be willing/able to help with this process.
In the document, we need to set header
Accept: application/vnd.urbanairship+json; version=3;
However, received error when I did that
{"ok":false,"error":"Could not parse request body.","error_code":40000,"details":{"error":"The key 'aps' is not allowed in this context","path":"aps","location":{"line":1,"column":9}},"operation_id":"f8cb9b60-caa3-11e3-9c7c-14feb5d31f47"}
Fix: we can delete the Accept header or change it to
Accept: application/vnd.urbanairship+json; version=2;
Hi,
I work for a large company. I'm interested in using node-urban-airship, for an internal project. However, the company won't even allow an evaluation to occur without some kind of license identifying who the copyright belongs to and a statement about licensing (GPL, MIT, BSD, Apache, whatever).
Please consider at least putting a LICENSE file in the root directory, and potentially adding copyright statements in the headers for each source file.
Thanks,
Kevin Gambrel
Technology Manager
Walt Disney Animation Studios
[email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.