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

Получение информации о доверенности, GetPowerOfAttorneyInfo, эксепшен boxId не передан #262

Closed
nats56 opened this issue Apr 28, 2023 · 1 comment

Comments

@nats56
Copy link

nats56 commented Apr 28, 2023

При вызове метода получения информации о доверенности в версии 3.12.0, падает ошибка:
Caused by: org.apache.http.client.HttpResponseException: Could not get boxId from query param
at Diadoc.Api.httpClient.DiadocHttpClient.getResponseBytes(DiadocHttpClient.java:113)
at Diadoc.Api.httpClient.DiadocHttpClient.performRequest(DiadocHttpClient.java:83)
at Diadoc.Api.powersOfAttorney.PowerOfAttorneyClient.getPowerOfAttorneyInfo(PowerOfAttorneyClient.java:122)

Что логично, т.к. в коде этот параметр в запрос не передается:
Diadoc.Api.powersOfAttorney.PowerOfAttorneyClient.getPowerOfAttorneyInfo(String, String, String):

try {
var request = RequestBuilder.get(
new URIBuilder(diadocHttpClient.getBaseUrl())
.setPath("/GetPowerOfAttorneyInfo")
.addParameter("messageId", messageId)
.addParameter("entityId", entityId)
.build());

        return PowerOfAttorneyInfo.parseFrom(diadocHttpClient.performRequest(request));
    } catch (URISyntaxException | IOException e) {
        throw new DiadocSdkException(e);
    }
@RusB
Copy link
Contributor

RusB commented Jun 15, 2023

Версия 3.14.0 потерялся параметр boxId в строке 118.

Diadoc.Api.exceptions.DiadocSdkException: org.apache.http.client.HttpResponseException: status code: 400, reason phrase: Could not get boxId from query param
	at Diadoc.Api.powersOfAttorney.PowerOfAttorneyClient.getPowerOfAttorneyInfo(PowerOfAttorneyClient.java:124)

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

3 participants