java.io.IOException: Server returned HTTP response code: 401 for URL: https://outlook.office.com/api/v2.0/me/calendars/90e0ec6940694c5a8f3ed4b3704ddff1/calendarview?startDateTime=2016-01-01T01:00:00&endDateTime=2016-03-03T23:00:00

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Stack Overflow by Luftbaum
, 1 year ago
Server returned HTTP response code: 401 for URL: https://outlook.office.com/api/v2.0/me/calendars/90e0ec6940694c5a8f3ed4b3704ddff1/calendarview?startDateTime=2016-01-01T01:00:00&endDateTime=2016-03-03T23:00:00
via Stack Overflow by celik
, 1 year ago
Server returned HTTP response code: 400 for URL: https://api.example.com/api-token-auth/
via Stack Overflow by ThatGuy343
, 2 years ago
Server returned HTTP response code: 400 for URL: https://www.googleapis.com/urlshortener/v1/url
via Stack Overflow by Eddy
, 2 years ago
Server returned HTTP response code: 400 for URL: https://api.parse.com/1/classes/Cars?where={Active:1}
via serviceorientedarchitect.com by Unknown author, 1 year ago
Server returned HTTP response code: 403 for URL: https://downloads.gradle.org/distributions/gradle-2.11-bin.zip
via serviceorientedarchitect.com by Unknown author, 9 months ago
Server returned HTTP response code: 403 for URL: https://downloads.gradle.org/distributions/gradle-2.11-bin.zip
java.io.IOException: Server returned HTTP response code: 401 for URL: https://outlook.office.com/api/v2.0/me/calendars/90e0ec6940694c5a8f3ed4b3704ddff1/calendarview?startDateTime=2016-01-01T01:00:00&endDateTime=2016-03-03T23:00:00
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at de.airdevelopments.outlookapi.OutlookHTTPConnector.executeRequest(OutlookHTTPConnector.java:46)
at de.airdevelopments.outlookapi.Test.test(Test.java:22)
at de.airdevelopments.outlookapi.Test.main(Test.java:13)

Users with the same issue

35 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
94 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.