the-hideout / tarkov-dev

The official site for tarkov.dev - A web app to track item prices, view trader barters, quests, maps, and much more!
https://tarkov.dev
MIT License
147 stars 53 forks source link

API responses take a long time or don't work at all #975

Closed PC-Principal closed 2 months ago

PC-Principal commented 3 months ago

Describe the Issue

https://status.tarkov.dev/ - seems like 502 error.

And i found that PHP usage API example is broken, seems like errors being from 8 august.

Expected Behavior

Need research

To Reproduce

Try call - using PHP GraphQL example:

$headers = ['Content-Type: application/json'];

$query = '{
  items(name: "m855a1") {
    id
    name
    shortName
  }
}';
$data = @file_get_contents('https://api.tarkov.dev/graphql', false, stream_context_create([
  'http' => [
    'method' => 'POST',
    'header' => $headers,
    'content' => json_encode(['query' => $query]),
  ]
]));
return json_decode($data, true);

Client

Other

Browser

Chrome

Relevant Console Log Output

No response

Extra Information

Here is my Sentry errors log about this call:

info_about_error

After call in my server (about example PHP) - i can see next thing

info_error

Razzmatazzz commented 3 months ago

Following the loss of the service that was providing caching services for the API and a change in the way Cloudflare bills for its services, costs for the API have gone up considerably. We've been experimenting with ways to reduce those costs, and as we do so stability may occasionally be affected. Apologies for the inconvenience in the meantime.

PC-Principal commented 2 months ago

Ok, thank you for answer!