O
O
OSky2020-12-11 22:03:54
API
OSky, 2020-12-11 22:03:54

OZON API error via request, what could it be?

I started getting this kind of response. Please tell me what it can be and how to avoid it or is it a question on the side of OZON?

{'error': {'code': 'REQUEST_TIMEOUT', 'message': 'context deadline exceeded', 'data': []}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Eremin, 2020-12-12
@Sergei_Erjemin

Never worked with OZON API but it says REQUEST_TIMEOUT ... i.e. the server could not process your request in the allotted time (how long it takes to execute the request - the server decides). So I don't think it depends on you.
PS Try caching responses on your side, and when you get REQUEST_TIMEOUT, take the old one from the cache...
And yet, when you get REQUEST_TIMEOUT, don't beat the server again and again... Because of this, it won't process your request faster, and even vice versa...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question