microsoftgraph / msgraph-sdk-android

Microsoft Graph SDK for Android! https://graph.microsoft.io
Other
51 stars 43 forks source link

Android Connect Sample: SEND Mail failing with unknown error #32

Closed girishkumarbk closed 8 years ago

girishkumarbk commented 8 years ago
09/27 16:54:48: Launching app
$ adb push /Users/girishkb/Downloads/android-java-connect-sample-master/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.microsoft.graph.connect
$ adb shell pm install -r "/data/local/tmp/com.microsoft.graph.connect"
Success

$ adb shell am start -n "com.microsoft.graph.connect/com.microsoft.graph.connect.ConnectActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Connected to process 2649 on device emulator-5554
W/System: ClassLoader referenced unknown path: /data/app/com.microsoft.graph.connect-1/lib/x86
W/gralloc_ranchu: Gralloc pipe failed

                  [ 09-27 16:54:50.418  2649: 2649 D/         ]
                  HostConnection::get() New Host Connection established 0xad82dd40, tid 2649
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
E/DefaultHttpProvider[sendRequestInternal] - 286: Error during http request [This is an unexpected error from Graph, please report this at https://github.com/microsoftgraph/msgraph-sdk-android/issues]
E/DefaultHttpProvider[sendRequestInternal] - 286: Error code: UnknownError
E/DefaultHttpProvider[sendRequestInternal] - 286: Error message: 
E/DefaultHttpProvider[sendRequestInternal] - 286: POST https://graph.microsoft.com/v1.0/me/microsoft.graph.sendMail
E/DefaultHttpProvider[sendRequestInternal] - 286: SdkVersion : graph-android-v1.0.0
E/DefaultHttpProvider[sendRequestInternal] - 286: Authorization : Bearer [...]
E/DefaultHttpProvider[sendRequestInternal] - 286: SampleID : android-java-connect-sample
E/DefaultHttpProvider[sendRequestInternal] - 286: {"message":{"body":{"content":"\u003chtml\u003e\u003chead\u003e \u003cmeta http-equiv\u003d\u0027Content-Type\u0027 content\u003d\u0027text/html; charset\u003dus-ascii\u0027\u003e \u003ctitle\u003e\u003c/title\u003e \u003c/head\u003e \u003cbody style\u003d\u0027font-family:calibri\u0027\u003e \u003ch2\u003eCongratulations, BK, GirishKumar!\u003c/h2\u003e \u003cp\u003eThis is a message from the Microsoft Graph Connect sample. You are well on your way to incorporating Microsoft services in your apps. \u003c/p\u003e \u003ch3\u003eWhat\u0026#8217;s next?\u003c/h3\u003e \u003cul\u003e \u003cli\u003eCheck out \u003ca href\u003d\u0027https://graph.microsoft.io\u0027\u003egraph.microsoft.io\u003c/a\u003e to start building Microsoft Graph apps today with all the latest tools, templates, and guidance to get started quickly.\u003c/li\u003e \u003cli\u003eUse the \u003ca href\u003d\u0027https://graph.microsoft.io/graph-explorer\u0027\u003eGraph Explorer\u003c/a\u003e to start your testing.\u003c/li\u003e \u003cli\u003eBrowse other \u003ca href\u003d\u0027https://github.com/microsoftgraph\u0027\u003esamples on GitHub\u003c/a\u003e to see more of the APIs in action.\u003c/li\u003e \u003c/ul\u003e \u003ch3\u003eGive us feedback\u003c/h3\u003e \u003cul\u003e \u003cli\u003eIf you have any trouble running this sample, please \u003ca href\u003d\u0027https://github.com/microsoftgraph/android-java-connect-sample/issues\u0027\u003elog an issue\u003c/a\u003e.\u003c/li\u003e \u003cli\u003eFor general questions about the Microsoft Graph APIs, post to \u003ca href\u003d\u0027https://stackoverflow.com/questions/tagged/microsoftgraph?sort\u003dnewest\u0027\u003eStack Overflow\u003c/a\u003e. Make sure that your questions or comments are tagged with [MicrosoftGraph].\u003c/li\u003e \u003c/ul\u003e \u003cp\u003eThanks, and happy coding!\u003cbr\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Your Microsoft Graph Development team \u003c/p\u003e \u003cdiv style\u003d\u0027text-align:center; font-family:calibri\u0027\u003e \u003ctable style\u003d\u0027width:100%; font-family:calibri\u0027\u003e \u003ctbody\u003e \u003ctr\u003e \u003ctd\u003e\u003ca href\u003d\u0027https://github.com/microsoftgraph/android-java-connect-sample\u0027\u003eSee on GitHub\u003c/a\u003e \u003c/td\u003e \u003ctd\u003e\u003ca href\u003d\u0027https://officespdev.uservoice.com\u0027\u003eSuggest on UserVoice\u003c/a\u003e \u003c/td\u003e \u003ctd\u003e\u003ca href\u003d\u0027https://twitter.com/intent/tweet?text\u003dI%20just%20started%20developing%20apps%20for%20Android%20using%20the%20Microsoft%20Graph%20Connect%20sample\u0026amp;url\u003dhttps://github.com/microsoftgraph/android-java-connect-sample\u0026amp;hashtags\u003dAndroid,MicrosoftGraph\u0027\u003eShare on Twitter\u003c/a\u003e \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e \u003c/table\u003e \u003c/div\u003e \u003c/body\u003e \u003c/html\u003e","contentType":"html","@odata.type":"microsoft.graph.itemBody"},"subject":"Welcome to Microsoft Graph development on Android with the Connect sample","toRecipients":[{"emailAddress":{"address":"girishkb@netapp.com","@odata.type":"microsoft.graph.emailAddress"},"@odata.type":"microsoft.graph.recipient"}],"@odata.type":"microsoft.graph.message"},"saveToSentItems":true}
E/DefaultHttpProvider[sendRequestInternal] - 286: 504 : Gateway Timeout
E/DefaultHttpProvider[sendRequestInternal] - 286: Duration : 30872.9656
E/DefaultHttpProvider[sendRequestInternal] - 286: Cache-Control : private
E/DefaultHttpProvider[sendRequestInternal] - 286: request-id : a0229f89-7099-4a3a-ad83-c281269135b6
E/DefaultHttpProvider[sendRequestInternal] - 286: x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"South India","Slice":"SliceA","ScaleUnit":"001","Host":"AGSFE_IN_2","ADSiteName":"MAA"}}
E/DefaultHttpProvider[sendRequestInternal] - 286: X-Powered-By : ASP.NET
E/DefaultHttpProvider[sendRequestInternal] - 286: X-Android-Selected-Protocol : http/1.1
E/DefaultHttpProvider[sendRequestInternal] - 286: X-Android-Response-Source : NETWORK 504
E/DefaultHttpProvider[sendRequestInternal] - 286: client-request-id : a0229f89-7099-4a3a-ad83-c281269135b6
E/DefaultHttpProvider[sendRequestInternal] - 286: X-Android-Sent-Millis : 1474975609812
E/DefaultHttpProvider[sendRequestInternal] - 286: Content-Type : application/json
E/DefaultHttpProvider[sendRequestInternal] - 286: Date : Tue, 27 Sep 2016 11:27:21 GMT
E/DefaultHttpProvider[sendRequestInternal] - 286: Server : Microsoft-IIS/8.5
E/DefaultHttpProvider[sendRequestInternal] - 286: Transfer-Encoding : chunked
E/DefaultHttpProvider[sendRequestInternal] - 286: X-Android-Received-Millis : 1474975640714
E/DefaultHttpProvider[sendRequestInternal] - 286: {
E/DefaultHttpProvider[sendRequestInternal] - 286:    "error": {
E/DefaultHttpProvider[sendRequestInternal] - 286:       "code": "UnknownError",
E/DefaultHttpProvider[sendRequestInternal] - 286:       "message": "",
E/DefaultHttpProvider[sendRequestInternal] - 286:       "innerError": {
E/DefaultHttpProvider[sendRequestInternal] - 286:          "request-id": "a0229f89-7099-4a3a-ad83-c281269135b6",
E/DefaultHttpProvider[sendRequestInternal] - 286:          "date": "2016-09-27T11:27:21"
E/DefaultHttpProvider[sendRequestInternal] - 286:       }
E/DefaultHttpProvider[sendRequestInternal] - 286:    }
E/DefaultHttpProvider[sendRequestInternal] - 286: }
E/DefaultHttpProvider[sendRequestInternal] - 286: Throwable detail: 
                                                  com.microsoft.graph.http.GraphFatalServiceException: [This is an unexpected error from Graph, please report this at https://github.com/microsoftgraph/msgraph-sdk-android/issues]
                                                  Error code: UnknownError
                                                  Error message: 

                                                  POST https://graph.microsoft.com/v1.0/me/microsoft.graph.sendMail
                                                  SdkVersion : graph-android-v1.0.0
                                                  Authorization : Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6IkFRQUJBQUFBQUFEUk5ZUlEzZGhSU3JtLTRLLWFkcENKcGJjSzBTVW9jeTM4SjU0OEVrd18zQWh0Z2tnMVVEWGZqTE9GOEZRY1lJUkstSUVUT2Nubzl1cDlaNXVoeXpqeVNnRFphUWdrWEkzNFJOMGNGS3FiWlNBQSIsImFsZyI6IlJTMjU2IiwieDV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tiQG5ldGFwcC5jb20iLCJ2ZXIiOiIxLjAifQ.cGvUrLT-lzzx-5RqVSqQy2ZLHx4jOjQrA9yj2f7zmXs_Trx46LWnLU2NUuw6gU_gcQ63zqjIy5Uhg3fbFmLSKWU0CNdOS31jlv1gz0JCGijKrrie-vxvLSHqArZnoJfQ9h4bTQR9Lpc4JBRZI5WRS8GKUtWgSD0vqdJosH3WOTdHZb4rixvT6UYEpjr0BE7NLJlCh214o1Cp9I_vxfmpf-lYix_-rT2TTzNT22r8yVfBeWmlOyy2aZFnSk-0q32srkWx2HFunjo5ux4u4AbnB8UatO4kLY4assVD52e28bERhXO23Z3RS7_4JWbGYsgs0TZ5DhDycA4yYzIPYTLHgA
                                                  SampleID : android-java-connect-sample
E/DefaultHttpProvider[sendRequestInternal] - 286: {"message":{"body":{"content":"\u003chtml\u003e\u003chead\u003e \u003cmeta http-equiv\u003d\u0027Content-Type\u0027 content\u003d\u0027text/html; charset\u003dus-ascii\u0027\u003e \u003ctitle\u003e\u003c/title\u003e \u003c/head\u003e \u003cbody style\u003d\u0027font-family:calibri\u0027\u003e \u003ch2\u003eCongratulations, BK, GirishKumar!\u003c/h2\u003e \u003cp\u003eThis is a message from the Microsoft Graph Connect sample. You are well on your way to incorporating Microsoft services in your apps. \u003c/p\u003e \u003ch3\u003eWhat\u0026#8217;s next?\u003c/h3\u003e \u003cul\u003e \u003cli\u003eCheck out \u003ca href\u003d\u0027https://graph.microsoft.io\u0027\u003egraph.microsoft.io\u003c/a\u003e to start building Microsoft Graph apps today with all the latest tools, templates, and guidance to get started quickly.\u003c/li\u003e \u003cli\u003eUse the \u003ca href\u003d\u0027https://graph.microsoft.io/graph-explorer\u0027\u003eGraph Explorer\u003c/a\u003e to start your testing.\u003c/li\u003e \u003cli\u003eBrowse other \u003ca href\u003d\u0027https://github.com/microsoftgraph\u0027\u003esamples on GitHub\u003c/a\u003e to see more of the APIs in action.\u003c/li\u003e \u003c/ul\u003e \u003ch3\u003eGive us feedback\u003c/h3\u003e \u003cul\u003e \u003cli\u003eIf you have any trouble running this sample, please \u003ca href\u003d\u0027https://github.com/microsoftgraph/android-java-connect-sample/issues\u0027\u003elog an issue\u003c/a\u003e.\u003c/li\u003e \u003cli\u003eFor general questions about the Microsoft Graph APIs, post to \u003ca href\u003d\u0027https://stackoverflow.com/questions/tagged/microsoftgraph?sort\u003dnewest\u0027\u003eStack Overflow\u003c/a\u003e. Make sure that your questions or comments are tagged with [MicrosoftGraph].\u003c/li\u003e \u003c/ul\u003e \u003cp\u003eThanks, and happy coding!\u003cbr\u003e \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Your Microsoft Graph Development team \u003c/p\u003e \u003cdiv style\u003d\u0027text-align:center; font-family:calibri\u0027\u003e \u003ctable style\u003d\u0027width:100%; font-family:calibri\u0027\u003e \u003ctbody\u003e \u003ctr\u003e \u003ctd\u003e\u003ca href\u003d\u0027https://github.com/microsoftgraph/android-java-connect-sample\u0027\u003eSee on GitHub\u003c/a\u003e \u003c/td\u003e \u003ctd\u003e\u003ca href\u003d\u0027https://officespdev.uservoice.com\u0027\u003eSuggest on UserVoice\u003c/a\u003e \u003c/td\u003e \u003ctd\u003e\u003ca href\u003d\u0027https://twitter.com/intent/tweet?text\u003dI%20just%20started%20developing%20apps%20for%20Android%20using%20the%20Microsoft%20Graph%20Connect%20sample\u0026amp;url\u003dhttps://github.com/microsoftgraph/android-java-connect-sample\u0026amp;hashtags\u003dAndroid,MicrosoftGraph\u0027\u003eShare on Twitter\u003c/a\u003e \u003c/td\u003e \u003c/tr\u003e \u003c/tbody\u003e \u003c/table\u003e \u003c/div\u003e \u003c/body\u003e \u003c/html\u003e","contentType":"html","@odata.type":"microsoft.graph.itemBody"},"subject":"Welcome to Microsoft Graph development on Android with the Connect sample","toRecipients":[{"emailAddress":{"address":"girishkb@netapp.com","@odata.type":"microsoft.graph.emailAddress"},"@odata.type":"microsoft.graph.recipient"}],"@odata.type":"microsoft.graph.message"},"saveToSentItems":true}

                                                  504 : Gateway Timeout
                                                  Duration : 30872.9656
                                                  Cache-Control : private
                                                  request-id : a0229f89-7099-4a3a-ad83-c281269135b6
                                                  x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"South India","Slice":"SliceA","ScaleUnit":"001","Host":"AGSFE_IN_2","ADSiteName":"MAA"}}
                                                  X-Powered-By : ASP.NET
                                                  X-Android-Selected-Protocol : http/1.1
                                                  X-Android-Response-Source : NETWORK 504
                                                  client-request-id : a0229f89-7099-4a3a-ad83-c281269135b6
                                                  X-Android-Sent-Millis : 1474975609812
                                                  Content-Type : application/json
                                                  Date : Tue, 27 Sep 2016 11:27:21 GMT
                                                  Server : Microsoft-IIS/8.5
                                                  Transfer-Encoding : chunked
                                                  X-Android-Received-Millis : 1474975640714
                                                  {
                                                     "error": {
                                                        "code": "UnknownError",
                                                        "message": "",
                                                        "innerError": {
E/DefaultHttpProvider[sendRequestInternal] - 286:          "request-id": "a0229f89-7099-4a3a-ad83-c281269135b6",
                                                           "date": "2016-09-27T11:27:21"
                                                        }
                                                     }
                                                  }

                                                      at com.microsoft.graph.http.DefaultHttpProvider.handleErrorResponse(DefaultHttpProvider.java:310)
                                                      at com.microsoft.graph.http.DefaultHttpProvider.sendRequestInternal(DefaultHttpProvider.java:246)
                                                      at com.microsoft.graph.http.DefaultHttpProvider.access$000(DefaultHttpProvider.java:47)
                                                      at com.microsoft.graph.http.DefaultHttpProvider$1.run(DefaultHttpProvider.java:129)
                                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                      at java.lang.Thread.run(Thread.java:761)
iambmelt commented 8 years ago

Thanks for reporting this @girishkumarbk - This issue (HTTP 504 Gateway Timeout) will be reported to our web services team. It does not appear to be SDK or sample related.

If you have any additional problems using the code sample please feel free to file an issue here.

Any SDK related issues you encounter can be filed here.