************ **** ANDROID_APP_LOG ******* ********************* Sep 07 14:52:53 LOG URL: https://www.amazon.com/ap/oa?client_id=amzn1.application-oa2-client.308b59ce96c143b7a9b57725a88ba03b&scope=alexa%3A%3Askills%3Aaccount_linking&response_type=code&redirect_uri=https%3A%2F%2Fask.caredirect.app&state=alexa_auth Sep 07 14:53:25 LOG LINKING LISTENDER CALLED Sep 07 14:53:25 LOG code ALEXA_AUTH_CODE Sep 07 14:53:38 LOG URL: https://www.amazon.com/ap/oa?client_id=amzn1.application-oa2-client.872d3053f0f741c4ad47bb51ab4c6b96&scope=profile&response_type=code&redirect_uri=https%3A%2F%2Fask.caredirect.app&state=lwa_auth ************ **** SERVER_LOG ******* ********************* Sep 07 14:51:54 Sep 07 14:51:54 > alexa-skill-ask@1.0.0 start:ask /home/dewi/code/care/alexa-skills-ask Sep 07 14:51:54 > node dist/index.js Sep 07 14:51:54 Sep 07 14:51:55 server started at port: 3008 Sep 07 14:52:24 AUTH POST Sep 07 14:52:24 ---------------- Sep 07 14:52:24 req body: {"req_using_alexa":true,"lwa_auth_code":"","lwa_auth_token":"","alexa_auth_code":"ANVANjlDqknKHIQJYrws","alexa_auth_token":""} Sep 07 14:52:24 ---------------- Sep 07 14:52:24 exchanging auth code for token Sep 07 14:52:24 ---------------- *** Swapping Alexa auth code for auth token *** Sep 07 14:53:25 AUTH POST Sep 07 14:53:25 ---------------- Sep 07 14:53:25 ---------------- Sep 07 14:53:25 exchanging auth code for token -- Sep 07 14:53:25 ---------------- Sep 07 14:53:25 status: 200 _ data: {"access_token":"ALEXA_AUTH_TOKEN","refresh_token":"REFRESH_TOKEN","token_type":"bearer","expires_in":3600} _ headers: {"server":"Server","date":"Mon, 07 Sep 2020 13:53:25 GMT","content-type":"application/json;charset=UTF-8","content-length":"956","connection":"close","x-amz-rid":"JENE9YAG5GNP5TSQY5YF","x-amzn-requestid":"d41e20d0-29fd-46f0-86c1-5e5652b146c8","x-amz-date":"Mon, 7 Sep 2020 13:53:25 GMT","cache-control":"no-cache, no-store, must-revalidate","pragma":"no-cache","vary":"Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent"} Sep 07 14:53:48 AUTH POST Sep 07 14:53:48 ---------------- Sep 07 14:53:48 req body: {"req_using_alexa":false,"lwa_auth_code":"LWA_AUTH_CODE","lwa_auth_token":"","alexa_auth_code":"ALEXA_AUTH_CODE","alexa_auth_token":"ALEXA_AUTH_TOKEN"} Sep 07 14:53:48 ---------------- Sep 07 14:53:48 exchanging auth code for token Sep 07 14:53:49 ---------------- Sep 07 14:53:49 status: 200 _ data: {"access_token":"LWA_AUTH_TOKEN","refresh_token":"REFRESH_TOKEN","token_type":"bearer","expires_in":3600} _ headers: {"server":"Server","date":"Mon, 07 Sep 2020 13:53:49 GMT","content-type":"application/json;charset=UTF-8","content-length":"913","connection":"close","x-amz-rid":"59NWRCKYTFSR6WCT4KQ8","x-amzn-requestid":"fbf50bd4-5cff-483c-bf09-527bcb6abaf5","x-amz-date":"Mon, 7 Sep 2020 13:53:49 GMT","cache-control":"no-cache, no-store, must-revalidate","pragma":"no-cache","vary":"Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent"} Sep 07 14:53:49 ---------------- Sep 07 14:53:49 ENABLING SKILL Sep 07 14:53:49 ---------------- Sep 07 14:53:49 POSTING: {"method":"post","url":"https://api.amazonalexa.com/v1/users/~current/skills/amzn1.ask.skill.6e971ebf-97e9-498a-8064-523f3a570f27/enablement","data":"stage=development&accountLinkRequest%5BredirectUri%5D=https%3A%2F%2Fask.caredirect.app&accountLinkRequest%5BauthCode%5D=LWA_AUTH_CODE&accountLinkRequest%5Btype%5D=AUTH_CODE","headers":{"Content-Type":"application/json","Authorization":"Bearer ALEXA_AUTH_TOKEN"}} Sep 07 14:53:49 ---------------- Sep 07 14:53:49 status: 400 _ data: {"message":"Incorrect endpoint for customer"} _ headers: {"content-type":"application/json","content-length":"45","connection":"close","server":"Server","date":"Mon, 07 Sep 2020 13:53:49 GMT","x-amz-rid":"XMWPN4Y9S7HXNTHAMF8A","vary":"Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Error from cloudfront","via":"1.1 15d02191c36cdeee08a044420a59fee3.cloudfront.net (CloudFront)","x-amz-cf-pop":"MAN50-C2","x-amz-cf-id":"a34p3iULO_b7jlkvKMIfnNNLW7-mm9d_Sa7IaxUIVjrpTZ7tqQqBXA=="} Sep 07 14:53:49 ---------------- Sep 07 14:53:49 POSTING: {"method":"post","url":"https://api.eu.amazonalexa.com/v1/users/~current/skills/amzn1.ask.skill.6e971ebf-97e9-498a-8064-523f3a570f27/enablement","data":"stage=development&accountLinkRequest%5BredirectUri%5D=https%3A%2F%2Fask.caredirect.app&accountLinkRequest%5BauthCode%5D=LWA_AUTH_CODE&accountLinkRequest%5Btype%5D=AUTH_CODE","headers":{"Content-Type":"application/json","Authorization":"Bearer ALEXA_AUTH_TOKEN"}} Sep 07 14:53:49 ---------------- Sep 07 14:53:49 status: 400 _ data: {"message":"Failed to parse request body."} _ headers: {"content-type":"application/json","content-length":"43","connection":"close","server":"Server","date":"Mon, 07 Sep 2020 13:53:49 GMT","x-amz-rid":"GTRA7WS6QR9V3RV6TTRR","vary":"Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Error from cloudfront","via":"1.1 f44644a07b215106324b1bed60fd0347.cloudfront.net (CloudFront)","x-amz-cf-pop":"MAN50-C3","x-amz-cf-id":"8rk-4QwkCRmLTDKlRUB5Dg0QCSR9x3pECcyZjOZdgOpoj_D-aUvbtQ=="} Sep 07 14:53:49 ---------------- Sep 07 14:53:49 POSTING: {"method":"post","url":"https://api.fe.amazonalexa.com/v1/users/~current/skills/amzn1.ask.skill.6e971ebf-97e9-498a-8064-523f3a570f27/enablement","data":"stage=development&accountLinkRequest%5BredirectUri%5D=https%3A%2F%2Fask.caredirect.app&accountLinkRequest%5BauthCode%5D=LWA_AUTH_CODE&accountLinkRequest%5Btype%5D=AUTH_CODE","headers":{"Content-Type":"application/json","Authorization":"Bearer ALEXA_AUTH_TOKEN"}} Sep 07 14:53:50 ---------------- Sep 07 14:53:50 status: 400 _ data: {"message":"Incorrect endpoint for customer"} _ headers: {"content-type":"application/json","content-length":"45","connection":"close","server":"Server","date":"Mon, 07 Sep 2020 13:53:50 GMT","x-amz-rid":"ZGQJ7RVK60FJXZPB7YW5","vary":"Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Error from cloudfront","via":"1.1 b94997907f536f3f28476582e74f8f2e.cloudfront.net (CloudFront)","x-amz-cf-pop":"MAN50-C3","x-amz-cf-id":"JRkL-yz1n0-7ACVJd3vwUk9nR6yVSl5fTQkVIGXB9N7ERNxCgzAdoA=="}