Created
February 26, 2019 08:21
-
-
Save rickyhai11/0ae83302c384c2cd8eb1e6ead4b69cff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0|app | info: App listening on http://localhost:8080 | |
0|app | Loaded data from xml file successfully! | |
0|app | Generating a non-contract shipment... | |
0|app | Parsing the response to JSON format... | |
0|app | info: App listening on http://localhost:8080 | |
0|app | info: App listening on http://localhost:8080 | |
0|app | Loaded data from xml file successfully! | |
0|app | Generating a non-contract shipment... | |
0|app | Parsing the response to JSON format... | |
0|app | '{"non-contract-shipment-info":{"xmlns":"http://www.canadapost.ca/ws/ncshipment-v4","shipment-id":"618551551169032730","tracking-pin":"123456789012","links":{"link":[{"rel":"self","href":"https://ct.soa-gw.canadapost.ca/rs/0008819373/nc | |
shipment/618551551169032730","media-type":"application/vnd.cpc.ncshipment-v4+xml"},{"rel":"details","href":"https://ct.soa-gw.canadapost.ca/rs/0008819373/ncshipment/618551551169032730/details","media-type":"application/vnd.cpc.ncshipment-v4+xml"},{" | |
rel":"receipt","href":"https://ct.soa-gw.canadapost.ca/rs/0008819373/ncshipment/618551551169032730/receipt","media-type":"application/vnd.cpc.ncshipment-v4+xml"},{"rel":"refund","href":"https://ct.soa-gw.canadapost.ca/rs/0008819373/ncshipment/618551 | |
551169032730/refund","media-type":"application/vnd.cpc.ncshipment-v4+xml"},{"rel":"label","href":"https://ct.soa-gw.canadapost.ca/rs/artifact/c576c813c7d8e911/10001360641/0","media-type":"application/pdf","index":"0"}]}}}' | |
0|app | run into non contract error | |
0|app | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: | |
0|app | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client | |
0|app | at ServerResponse.setHeader (_http_outgoing.js:470:11) | |
0|app | at ServerResponse.header (C:\Users\nguye\Desktop\Dev\Dev_Machool\shipping\node_modules\express\lib\response.js:767:10) | |
0|app | at ServerResponse.send (C:\Users\nguye\Desktop\Dev\Dev_Machool\shipping\node_modules\express\lib\response.js:170:12) | |
0|app | at module.exports (C:\Users\nguye\Desktop\Dev\Dev_Machool\shipping\app\api-logger.js:3:22) | |
0|app | at canadaPostController.generateLabel.catch.then.catch (C:\Users\nguye\Desktop\Dev\Dev_Machool\shipping\app\routes\shipments.js:28:24) | |
0|app | at process.internalTickCallback (internal/process/next_tick.js:77:7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment