Closed yallie closed 4 years ago
Запрашиваю входящие документы. Беру первый попавшийся документ из списка. Запрашиваю текст документа, получаю ответ 404 not found:
// Authenticate -> POST http://api.stage.mdlp.crpt.ru/api/v1/auth headers: { X-ApiMethodName = Authenticate Accept = application/json, text/json, text/x-json, text/javascript, application/xml, text/xml Content-type = application/json } body: { "client_id": "01db16f2-9a4e-4d9f-b5e8-c68f12566fd5", "client_secret": "9199fe04-42c3-4e81-83b5-120eb5f129f2", "user_id": "starter_resident_1", "auth_type": "PASSWORD" } <- OK 200 (OK) http://api.stage.mdlp.crpt.ru/api/v1/auth timings: { started: 2020-05-15 16:51:52 elapsed: 00:00:00.1280896 } headers: { Connection = keep-alive X-XSS-Protection = 1; mode=block Pragma = no-cache X-Frame-Options = DENY X-Content-Type-Options = nosniff Strict-Transport-Security = max-age=15768000 Content-Length = 47 Cache-Control = no-cache, no-store, max-age=0, must-revalidate Content-Type = application/json Date = Fri, 15 May 2020 13:51:53 GMT Expires = 0 Server = nginx/1.14.0 } body: { "code": "7fc9db18-0cd4-457e-bd8f-41db8fc77f15" } // GetToken -> POST http://api.stage.mdlp.crpt.ru/api/v1/token headers: { X-ApiMethodName = GetToken Accept = application/json, text/json, text/x-json, text/javascript, application/xml, text/xml Content-type = application/json } body: { "code": "7fc9db18-0cd4-457e-bd8f-41db8fc77f15", "password": "password" } <- OK 200 (OK) http://api.stage.mdlp.crpt.ru/api/v1/token timings: { started: 2020-05-15 16:51:53 elapsed: 00:00:00.2599388 } headers: { Connection = keep-alive X-XSS-Protection = 1; mode=block Pragma = no-cache X-Frame-Options = DENY X-Content-Type-Options = nosniff Strict-Transport-Security = max-age=15768000 Content-Length = 63 Cache-Control = no-cache, no-store, max-age=0, must-revalidate Content-Type = application/json Date = Fri, 15 May 2020 13:51:53 GMT Expires = 0 Server = nginx/1.14.0 } body: { "token": "10d895c1-4b1b-447c-8208-16f693814fab", "life_time": 60 } // GetIncomeDocuments -> POST http://api.stage.mdlp.crpt.ru/api/v1/documents/income headers: { X-ApiMethodName = GetIncomeDocuments Authorization = token 10d895c1-4b1b-447c-8208-16f693814fab Accept = application/json, text/json, text/x-json, text/javascript, application/xml, text/xml Content-type = application/json } body: { "filter": { "processed_date_from": "1920-05-15 16:51:52", "doc_type": 607, "doc_status": "PROCESSED_DOCUMENT" }, "start_from": 0, "count": 1 } <- OK 200 (OK) http://api.stage.mdlp.crpt.ru/api/v1/documents/income timings: { started: 2020-05-15 16:51:52 elapsed: 00:00:00.5594190 } headers: { Transfer-Encoding = chunked Connection = keep-alive X-Application-Context = mdlp-api-document-front X-Content-Type-Options = nosniff X-XSS-Protection = 1; mode=block Pragma = no-cache X-Frame-Options = DENY Strict-Transport-Security = max-age=15768000 Cache-Control = no-cache, no-store, max-age=0, must-revalidate Content-Type = application/json;charset=UTF-8 Date = Fri, 15 May 2020 13:51:53 GMT Expires = 0 Server = nginx/1.14.0 } body: { "documents": [ { "request_id": "f09e4684-0309-47ed-b1bf-6745e1d6aaa7", "document_id": "ad3da204-872b-4169-92b4-438e72b99249", "date": "2020-04-29 00:34:19", "processed_date": "2020-04-29 00:34:19", "sender": "00000000100928", "receiver": "00000000100930", "sys_id": "9dedee17-e43a-47f1-910e-3a88ff6bc81b", "doc_type": 607, "doc_status": "PROCESSED_DOCUMENT", "file_uploadtype": 2, "sender_sys_id": "6f6fa779-b637-4234-9117-8ac4c1a9a81c", "version": "1.34" } ], "total": 671 } // GetDocumentText -> GET http://api.stage.mdlp.crpt.ru/api/v1/documents/download/ad3da204-872b-4169-92b4-438e72b99249 headers: { X-ApiMethodName = GetDocumentText Authorization = token 10d895c1-4b1b-447c-8208-16f693814fab Accept = application/json, text/json, text/x-json, text/javascript, application/xml, text/xml } <- ERROR 404 (NotFound) http://api.stage.mdlp.crpt.ru/api/v1/documents/download/ad3da204-872b-4169-92b4-438e72b99249 timings: { started: 2020-05-15 16:51:53 elapsed: 00:00:00.0556727 } headers: { Connection = keep-alive X-Application-Context = mdlp-api-document-front X-Content-Type-Options = nosniff X-XSS-Protection = 1; mode=block Pragma = no-cache X-Frame-Options = DENY Strict-Transport-Security = max-age=15768000 Content-Length = 118 Cache-Control = no-cache, no-store, max-age=0, must-revalidate Content-Type = application/json;charset=UTF-8 Date = Fri, 15 May 2020 13:51:53 GMT Expires = 0 Server = nginx/1.14.0 } body: { "error_description": "Ошибка при выполнении операции: запись не найдена" }
Проблема была на тестовом сервере.
Запрашиваю входящие документы. Беру первый попавшийся документ из списка. Запрашиваю текст документа, получаю ответ 404 not found: