Comments (3)
В общем выяснил, что причина в
GenerateDocumentZip(
buf << "**?**boxId=" << StringHelper::CanonicalizeUrl(boxId) << L"&messageId=" << StringHelper::CanonicalizeUrl(messageId) << L"&documentId=" << StringHelper::CanonicalizeUrl(documentId);
Знак вопроса лишний.
В итоге получил такую строку запроса
PerformAsyncHttpRequest /GenerateDocumentZip??boxId=2c47a7a.........
Просьба исправить. Видимо раньше ?? гасилось.
В C# не смотрел в чем причина, но такая же ошибка там тоже есть.
Хорошо бы, чтобы была возможность добавить режим вывода протокола запроса.
Я для поиска сделал так
void AddProtocolAPI(std::string str)
{
std::ofstream fout("diadoc_dll.log", std::ios_base::app);
fout << str << "\n";
fout.close();
}
А в функции вызвал
AddProtocolAPI("PerformAsyncHttpRequest " + StringHelper::Utf16ToUtf8(buf.str() ));
Или просьба подсказать, чем можно проследить запросы к апи.
from diadocsdk-cpp.
Привет! Обновите сдк. В последней версии как раз это пофиксили https://github.com/diadoc/diadocsdk-cpp/releases/tag/versions%2F1.92.5
from diadocsdk-cpp.
Спасибо. На последней версии все работает.
from diadocsdk-cpp.
Related Issues (15)
- Не все сервисы есть в DiadocApi. Например GenerateDocumentZip и ShelfDownload HOT 1
- Клиент просит поле "Дата изменения статуса" из справочника контрагентов. HOT 2
- Нет функции GetMyCertificates HOT 5
- Как заполнить DocumentSignature -> Signature HOT 1
- Когда будет добавлена функциональность для работы с машиночитаемой доверенностью в c++? HOT 3
- Как отправить через АПИ электронно транспортную накладную. HOT 3
- GetDocflow + GetDocflowBatchResponseV3 + DocumentWithDocflowV3
- Нет функции GetResolutionRoutesForOrganization HOT 1
- ФИО подписанта в документе не совпадает с ФИО владельца электронной подписи HOT 1
- Когда будет решен вопрос по GetDocflow + GetDocflowBatchResponseV3 + DocumentWithDocflowV3?
- GetReceiptGenerationProcess() HOT 1
- ГОСТ 34.11-2012 HOT 5
- Не собирается проект HOT 15
- GenerateSenderTitleXml HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diadocsdk-cpp.