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

BadResponseException #11

Closed
nybry04 opened this issue Feb 14, 2020 · 9 comments
Closed

BadResponseException #11

nybry04 opened this issue Feb 14, 2020 · 9 comments

Comments

@nybry04
Copy link

nybry04 commented Feb 14, 2020

Появилась ошибка
Exception in thread "Thread-54" com.qiwi.billpayments.sdk.exception.BadResponseException: ResponseData{body='{"siteId":"*","billId":"*","amount":{"currency":"RUB","value":"1.00"},"status":{"value":"PAID","changedDateTime":"2020-02-14T22:43:45.596+03:00"},"customer":{"email":"email","phone":"phone","account":"*"},"customFields":{"apiClient":"java_sdk","apiClientVersion":"1.4.0","CHECKOUT_REFERER":"https://away.vk.com/"},"comment":"Пополнение баланса","creationDateTime":"2020-02-14T22:43:12.416+03:00","expirationDateTime":"2020-02-15T22:43:13.412+03:00","payUrl":"*"}', httpStatus=200}

Хотя все раньше работало

@Senderman
Copy link
Contributor

Senderman commented Feb 20, 2020

Подтверждаю, то же самое. И как я понял, это только для оплаченых счетов ошибка

@Senderman
Copy link
Contributor

Senderman commented Feb 22, 2020

Ошибка в классе RequestMapperIntercessor, в private T deserializeResponseBody(Class responseClass, ResponseData response)
Причина ошибки - сервер Qiwi API стал возвращать json у которого в custom fields появилось новое свойство - CHECKOUT_REFERER. И библиотека fasterxml валится от этого. В общем фикс - докинуть свойство CHECKOUT_REFERER в класс CustomFields
Создал PR, ждем

@Mike497
Copy link

Mike497 commented May 12, 2022

Здравствуйте, ошибка появилась вновь при вызове com.qiwi.billpayments.sdk.client.BillPaymentClient#createBill.

@AmazZ1nG
Copy link

Здравствуйте, ошибка появилась вновь при вызове com.qiwi.billpayments.sdk.client.BillPaymentClient#createBill.

Тоже самое появилось

@Senderman
Copy link
Contributor

@Mike497 @AmazZ1nG приложите стектрейс актуальный: как в шапке :) Может снова что-то в апи добавили/убрали?

@xxCarLyy
Copy link

xxCarLyy commented May 15, 2022

@Senderman

Exception in thread "main" com.qiwi.billpayments.sdk.exception.BadResponseException: ResponseData{body='{"siteId":"*","billId":"*","amount":{"currency":"RUB","value":"1.00"},"status":{"value":"WAITING","changedDateTime":"2022-05-15T19:38:20.915+03:00"},"customer":{"email":"*","account":"*","phone":"*"},"customFields":{"apiClient":"java_sdk","apiClientVersion":"1.5.0"},"comment":"Hello World","creationDateTime":"2022-05-15T19:38:20.915+03:00","expirationDateTime":"2022-06-29T19:38:20.702+03:00","payUrl":"*","recipientPhoneNumber":"*"}', httpStatus=200}

@xxCarLyy
Copy link

xxCarLyy commented May 15, 2022

@Senderman или держи этот.

Exception in thread "main" com.qiwi.billpayments.sdk.exception.BadResponseException: ResponseData{body='{"siteId":"*","billId":"*","amount":{"currency":"RUB","value":"1.00"},"status":{"value":"PAID","changedDateTime":"2022-05-15T18:55:37.84+03:00"},"customer":{"email":"*","phone":"*","account":"*"},"customFields":{"apiClient":"java_sdk","apiClientVersion":"1.5.0"},"comment":"Hello World","creationDateTime":"2022-05-15T18:51:38.245+03:00","expirationDateTime":"2022-06-29T18:51:37.942+03:00","payUrl":"*","recipientPhoneNumber":"*"}', httpStatus=200}

@Senderman
Copy link
Contributor

Опять поменяли ответ от сервера:) добавили поле recipientPhoneNumber
А уже есть #23 , если вольют - то проблема уйдет

@xxCarLyy
Copy link

Пойду тогда сбилжу тот. спасибо

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

5 participants