allegro / allegro-api

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

POST /pricing/offer-fee-preview zwraca 503 #7569

Closed TimothyKoval closed 1 year ago

TimothyKoval commented 1 year ago

Występuje problem:

:beetle: Opis / Description

POST /pricing/offer-fee-preview HTTP/1.1
Host: api.allegro.pl
Accept-Language: pl-PL
Accept: application/vnd.allegro.public.v1+json
Content-Type: application/vnd.allegro.public.v1+json
Authorization: bearer eyJhbGciOi ... 44MolUQnNg
Content-Length: 1799
Expect: 100-continue
{
    "offer": {
        "name": "ZACISK HAMULCA 44SKV642 \\\/ 342247",
        "category": {
            "id": "250427"
        },
        "sellingMode": {
            "format": "BUY_NOW",
            "price": {
                "amount": "220.00",
                "currency": "PLN"
            }
        },
        "publication": {
            "duration": "PT720H"
        },
        "parameters": [{
            "id": 11323,
            "valuesIds": ["11323_1"],
            "values": [],
            "rangeValue": null
        }, {
            "id": 127415,
            "valuesIds": ["127415_853133"],
            "values": null,
            "rangeValue": null
        }, {
            "id": 129591,
            "valuesIds": ["129591_1"],
            "values": [],
            "rangeValue": null
        }, {
            "id": 215858,
            "valuesIds": null,
            "values": ["44SKV642"],
            "rangeValue": null
        }, {
            "id": 215941,
            "valuesIds": [],
            "values": ["SKV44SKV642", "1J0615124B", "0986473924 (BOSCH)", "11954195962 (ATE)", "1301214746 (SBS)", "17377 (OSSCA)", "1J0615124B (OE)", "21304302 (VEGE)", "214746 (NK)", "2224250 (EAI)", "3224250 (SERA)", "3254000 (DRI)", "342247 (BUDWEG CALIPER)", "342247 (KAWE)", "38067300 (TEXTAR)", "420492 (A.B.S.)", "44SKV642 (ITALIE FIAAM)", "4851 (MAPCO)", "600210071 (ZIMMERMANN)", "6250146 (METZGER)"],
            "rangeValue": null
        }, {
            "id": 225693,
            "valuesIds": [],
            "values": ["5901947376690"],
            "rangeValue": null
        }, {
            "id": 227345,
            "valuesIds": [],
            "values": ["1J0615124B", "0986473924 (BOSCH)", "11954195962 (ATE)", "1301214746 (SBS)", "17377 (OSSCA)", "1J0615124B (OE)", "21304302 (VEGE)", "214746 (NK)", "2224250 (EAI)", "3224250 (SERA)", "3254000 (DRI)", "342247 (BUDWEG CALIPER)", "342247 (KAWE)", "38067300 (TEXTAR)", "420492 (A.B.S.)", "44SKV642 (ITALIE FIAAM)", "4851 (MAPCO)", "600210071 (ZIMMERMANN)", "6250146 (METZGER)", "6471051 (MAXTECH)"],
            "rangeValue": null
        }, {
            "id": 227633,
            "valuesIds": [],
            "values": ["54.00"],
            "rangeValue": null
        }, {
            "id": 213906,
            "valuesIds": [],
            "values": ["3.28"],
            "rangeValue": null
        }, {
            "id": 227349,
            "valuesIds": ["227349_320417"],
            "values": [],
            "rangeValue": null
        }],
        "stock": {
            "available": "10",
            "unit": "UNIT"
        },
        "promotion": {
            "emphasized": false,
            "bold": false,
            "highlight": false,
            "departmentPage": false,
            "emphasizedHighlightBoldPackage": false
        }
    }
}
HTTP/1.1 100 Continue

HTTP/1.1 503 Service Unavailable
expires: 0
cache-control: no-cache, no-store, max-age=0, must-revalidate
x-xss-protection: 1; mode=block
pragma: no-cache
x-frame-options: DENY
trace-id: 9a8b87f039d9c587
date: Fri, 01 Sep 2023 08:34:37 GMT
x-content-type-options: nosniff
strict-transport-security: max-age=31536000 ; includeSubDomains
content-type: application/json; charset=utf-8
content-length: 202
{
    "errors": [{
        "code": "SERVICE_UNAVAILABLE",
        "message": "Service unavailable.",
        "details": null,
        "path": null,
        "userMessage": "Serwer nie jest w stanie zrealizowa\u0107 zapytania. Spr\u00f3buj ponownie za kilka minut."
    }]
}
MaciejFrackowiak commented 1 year ago

W przesłanym requeście, dla parametru o id=127415 w polu "values" podałeś null, a powinno być [] - popraw proszę wywołanie i powinno być OK.

TimothyKoval commented 1 year ago

Działało tak od lat

stale[bot] commented 1 year 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.