Skip to content

Empty results with redis caching enable #64

@systemofapwne

Description

@systemofapwne

When having redis caching enabled, the response of steamapi is an empty json cluster

{"data": {"730": {}}, "status": "success"}

The api prints theses logs

level=INFO msg="Requested app info" apps=[730]
level=INFO msg="Redis connection pool created successfully"
level=INFO msg="App info could not be found in cache" apps=[730]
level=INFO msg="No app has been found at Steam but the request was succesfull" apps=[730]
10.6.0.4:54858 - "GET /v1/info/730 HTTP/1.1" 200

This bug looks like a regression, introduced by #eab6856 : With lines 45-47 removed, there will never be a call to the steam, no data will be stored in redis so the response will always be an empty JSON.

Turning off caching makes the api behave as expected.

I propose to add the missing lines back.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions