java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.sageone.com/oauth2/token Erro na integração de conta: {"error":"invalid_grant"}

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.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 19#244482642
    via GitHub by javacunha
    ,
  • Spring, Facebook : Server returns 400.
    via by Unknown author,
  • SkypeUser#setContact returns error
    via GitHub by seanc
    ,
  • GitHub comment 1886#248773785
    via GitHub by Tercus
    ,
    • java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.sageone.com/oauth2/token Erro na integração de conta: {"error":"invalid_grant"} at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at br.es.veweb.base.sageone.UtilJson.post(UtilJson.java:183) at br.es.veweb.base.sageone.IntegracaoSageOne.main(IntegracaoSageOne.java:23)

    Users with the same issue

    aldrinleal
    aldrinleal1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    tfr
    tfr35 times, last one,
    davidvanlaatum
    davidvanlaatum1 times, last one,
    90 more bugmates