Skip to content

No connection is available to service this operation: HGET #959

@grik001

Description

@grik001

Hi,

Feel free to delete this post if you believe it is not the correct place to post this. I am trying to use Redis Cache with Azure Functions.

I keep getting the following error: No connection is available to service this operation: HGET

I have tried using a static lazy connection or a connection per request. Almost all my calls get this error. I am using latest StackExchange.Redis for .Net 4.7. I am only sending a single message to Azure Functions so its not a matter of load and connection limit.

What I have also noticed is that the Save most of the time works, its always the Get that is failing(executing Save first then Get after using the same RedisCacheHelper instance with a static lazy loaded connection inside) Any idea what it might be?

Just some more info:

Azure Function v1

I am initializing my connection like this:

image

The above class I am only initializing once in the ctor of the Azure Function and re-using it so only 1 instance of this class exists.

I am calling the RedisCache like this:

image

image

AppInsight Logs:

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions