allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
210 stars 39 forks source link

Problem z wysyłaniem załącznika / Sandbox #9124

Open many-to-one opened 1 month ago

many-to-one commented 1 month ago

'trace-id': 'f05772fa25ea8ab8'

data = { "recipient": { "login": "alfapro" }, "text": "tests-7", "attachments": [ {"id": attachment_id["id"]} ] }

{ "errors": [ { "code": "ASSIGNING_ATTACHMENTS_TO_MESSAGE_FAILED", "message": "Assigning attachments to message failed. [Could not link all attachments to message with Id=05cf2bbe-2b32-4b00-b79d-4fcfa6968db2]", "details": null, "path": "/messaging/messages", "userMessage": "Nie uda\u0142o si\u0119 powi\u0105za\u0107 za\u0142\u0105cznik\u00f3w z wiadomo\u015bci\u0105. Mo\u017cliwym jest, \u017ce za\u0142\u0105cznik nie zosta\u0142 jeszcze wgrany." } ] }

Wygłąda na to, że przekazuję null zamiast załącznika, ale dlaczego w takim razię endpoint: "https://api.allegro.pl.allegrosandbox.pl/messaging/message-attachments" data = { "filename": pdf_file, "size": size } zwraca attachment id?

PrzemyslawLukanowski commented 4 weeks ago

Wygląda na to, że przez POST /messaging/message-attachments utworzyłeś deklarację załącznika, ale samego załącznika nie dodałeś (przez PUT /messaging/message-attachments/{attachmentId}) - nie znajduję tej informacji w naszych logach.

many-to-one commented 3 weeks ago

Ok, mam to, dzięki

stale[bot] commented 1 week ago

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.