Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a MalformedResponseException when a 429 #85

Open
crilofer opened this issue Mar 9, 2022 · 0 comments
Open

Getting a MalformedResponseException when a 429 #85

crilofer opened this issue Mar 9, 2022 · 0 comments

Comments

@crilofer
Copy link

crilofer commented Mar 9, 2022

Checking the documentation about Rate limiting seems that we are not receiving a correct JSON body response with the error. I just did a test and the response body seems to be an HTML:

    < html >
    < meta charset = utf - 8 >
    < title > Error: Rate limit exceeded - GoCardless < /title> < style >
    * , : before, : after {
        -moz - box - sizing: border - box;
        box - sizing: border - box;
    }

html, body {
    height: 100 % ;
}

body {
    margin: 0;
    background: #F6F6F6;
    font - family: Helvetica,
    Arial,
    sans - serif;
    font - size: 14 px;
    line - height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
  }

  h1 {
    font-weight: normal;
    font-size: 20px;
  }

  a {
    color: # 2891 cd;
    text - decoration: none;
}

a: hover {
    text - decoration: underline;
}

hr {
    border: none;
    border - top: 1 px solid# ccc;
}

.center {
    display: table;
    table - layout: fixed;
    width: 100 % ;
    height: 100 % ;
}

.center__inner {
    display: table - cell;
    vertical - align: middle;
    width: 100 % ;
    text - align: center;
}

.sticky - footer {
    display: table;
    table - layout: fixed;
    width: 100 % ;
    height: 100 % ;
}

.sticky - footer__container {
    display: table - row;
    height: 100 % ;
}

.sticky - footer__footer {
    display: table - row;
    height: 50 px;
    background: #FFFFFF;
}

.site - footer {
    font - size: 13 px;
    border - top: 1 px solid# E4E4E4;
    padding: 0 20 px;
    line - height: 55 px;
}

.site - footer__link {
    margin - right: 25 px;
    color: #77777F;
  }

  .page-container {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .u-image-replacement {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
  }

  .u-image-replacement:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
  }

  .gc-logo {
    position: relative;
    top: 3px;
    display: inline-block;
    width: 135px;
    height: 14px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIcAAAAOCAMAAAAyhv8oAAAABGdBTUEAALGPC/xhBQAAAfJQTFRFNVyFNVyFNVyFNVyFNlyGNVyFNVuENlyFNVyFPWOPPWWSOF+KOmKOOmKPO2WPOmOOOmKOOWOQOGCLOmKQOmOPOmOPOWOPOWSON16JOGCLNl6HN16JOWOPOWGLOGCKOmSPOGGNNl2IOmOPOmKONlyGO2KRPmqVN12HOmOPOWOPNV2FPGOROF+KOmOPOGKMOWaTNV2GOmOPNVyHOmSPOmSPO2SSOF+JN1+JOWOSO2KQN12HOWSONlyGN12IOWOON1+JOWSPZmaZOmKQN16IOWWROmOPOmOONlyGO2KONl2GOGGON1+LOF6KO2OQOGGMOmKOO2OQOmOPOmOPOmSQPGORNl2GOmSPO2WOPWaPOmSPQ2uUPGSRRGaZNVuFN1+KOWKMPGWUO2WOOWOP////N16HPGWPN16IN16INl2GNVyGNl2IVaqqOmOPPWeSNl6INluENl+JNl2GQGOVN16IO2KQPGeSOWGNQGiPO2KPPGmWPGmPOWCMOGCKNVuFNV2HN16KOWKNPW2SNluFOmKPSW2SNVuFNlyERnSiQmiXO2KdOmOROGCKQ2SQOmKPNlyGNlyGOWOPN2CLVXGqN16IOGCNPGOOPWOSPmaTNl2FNVyGNVyFAAAANl2HNl2HNl2HNl2HNl2HOGKNOGGMNl2HOGGOOWKOUGEv2QAAAJx0Uk5T+/z7/P76/v38Oz++RnJJlZFVuVObS3SKzLbd0Iawu5Kt2I2e5EEd3J1i7Vq4kKco6Ynoe2k4w8kxdeF499Smy30FZc46oJriNOuivMVss4x+hIiFSOdCKxlmEzMP9MeqJlaYAdlE1tHx7tIDXSrI+83eJNdOL6ggWxEirsH448KlFfx/B/79CxsNWMAXmez2ULIJ26xNNi3v8/kAT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0a3NaQzNnCPGEtwFchBb0f1hBu8nSDC3LPmZ+noxV+vaPmb93xik8yehe1S3EVx1uT//pgbb/cc5ud0d/4LrnnslH/zcZ3252Ke+6EdsLMuMQr1NnYWV/0nlH4F9mRNLO4qqlIAAAAAElFTkSuQmCC);
    background-repeat: no-repeat;
  }

  @media (-webkit-min-device-pixel-ratio: 1.5),
         (min--moz-device-pixel-ratio: 1.5),
         (-o-min-device-pixel-ratio: 3/2),
         (min-device-pixel-ratio: 1.5),
         (min-resolution: 1.5dppx) {
    .gc-logo {
      background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAAcCAMAAACnBqGzAAAABGdBTUEAALGPC/xhBQAAAjRQTFRFNVyFNVyFNVyFNluGNVuFNVyFNl6HN16IO2WPN1+JN2CLOmOPOWWROmOPOWOPOF+JNVuFO2OQO2KOOWOPN16IOWGNOGKONlyGN12INl2GOGGNOGCLNlyFPGOOOWOQOGCKPGOROWOPOWSOOmKPN1+JO2SQO2KQOmSPNV2GO2KROF+KOmSQO2OOOF6KOmOPPGWPNl2FOmSPN16IOmKPN2CKPGORN16HO2KPPWeSOWOOOmKQNl6HRnSiOWOOO2KQN16IOmOPNluENl2GOmOONl2IOF+JPGSROWSPO2KPOmKPNl+JOGGOPGWUO2OQOGCKN16JOF+KOmSQN12HPGSQPGaRNlyGOWaTO2SPN1+LN2CLOGCNPWOPNVyGOmOPOWKMN16KOmOPNl2GPmaTOmKPPGmWN12HO2SSNV2HNVuFOGCLOmOOOGGMOWSOOmOPOWOPO2KPO2KdOmKOOGCKQmiXNlyGOWOONV2FPWOSQ2SQOmKQOGGMOmSPOmOPNl2HNlyGO2KONVyGOmSPQGiPRGaZPmqVN12HNl2IOWKNO2WOPGmPNl2GO2WONluFO2SOOGKMVXGqOWSPNlyGOWOSNVyHPGeSPWaPZmaZNVyFVaqqOmKOPW2SNlyESW2SQGOV////Q2uUOmKON1+KNVuFOmSPOmOPOmOQOmKOOWCMOmOPO2KOPWW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jp4A/5QBAW4KpKnwYHOQTO/ROIAV5j7L1+Igw5Za/4XQAMxVMiDtAYdDpTPtVs9v53nAza7tpL8FtbxeuhgyCfZ0G6zBsdL6NJ8FoFjF6zBFPRVcLzRRLJU5jo4ern5xAe4f9BQ5ZlS9MrV5rILorKJ30uGx1rcS66ceC+819agQ3tKg8NJq6wJx0HTeHZPeji6En5H/BIhsx1rceehr3wMMMUgxBEJnlRd4dF2U75ZECrx0j/tde3uJU2sHNeZgAniS7528zF2HMIL8Jp67YAxsno1OJyLJjsMRwFN/9xKL/3TbZDbsjPaZ/NFaiJ2i/xinJDdNDk4k+jEcqFpk4Pe0TpO+a3xnIvV9OqO0wVpJ+RdwJDB2wkdDrQdWn2gw9E9iUZO1tw0k4P7aOVB4Xr10UwBjawX02lcfCveA6OBv3NSx62aGY+LyGZpUGvK+Y+DTuo4dz1d9OZ7s+nbHdToVYJ/HgibaD7J7Nbh2AGTNs8GUscnqxxblWzxpY5H/NIckjp28qulTqR2ai01TVtu2OISG6Xl1qZhGsyfvUYX8Xv+YWGbmsm3snukaMFQtFca/VmsDuL/sDDoFE/WXmg0fTaiw4FaLOGVBIZzqc/vrStyP+TDAgvUS5K8FTY+7Jq6W0+Ib+DbB9zPTq9a5RGYpV1Kfi8pnZP488Ac18qfpWrZ1UGzgY80m3clv6MDOGgWkUe/ymenol41ePksHAhtlsZnb5NSUxVeuZkhfYUDhvnLnM+Kea0/aybRUj/N0dYWnNea71tFHeO2mYxPH3OHvjqRGNK9WZ1IJB6zj5LX1MREIjGlT/0o+eBh4KYISCW1YR+C4oXiOSPfVBnJVHtpib+xmoxT16H8+ga2xv8BR4S9DWE26fEAAAAASUVORK5CYII=);
background - size: 135 px 14 px;
}
}

< /style>

< body class = "sticky-footer" >
    < div class = "sticky-footer__container" >
    < div class = "center" >
    < div class = "center__inner" >
    < div class = "page-container" >

    < h1 > You are making too many requests.Please
try again in a few minutes < /h1>

Rate limit exceeded


    < hr >
    < p > < small > < b > HTTP Error: < /b> 429</small > < /p> < p > < small > < b > Request ID: < /b> </small > < /p> < /div> < /div> < /div> < /div> < div class = "sticky-footer__footer" >
    < div class = "site-footer" >
    < a class = "site-footer__link u-image-replacement gc-logo"
href = "https://gocardless.com" > GoCardless < /a> < a class = "site-footer__link"
href = "mailto:[email protected]" > help@ gocardless.com < /a> < a href = "tel:+442071838674"
class = "site-footer__link" > 020 7183 8674 < /a> < span > (9 am - 6 pm Mon - Fri) < /span> < /div> < /div> < /body> < /html>

This is causing that this is throwing a JsonSyntaxException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant