Skip to content

afterResponse hook is not called after a retryWithMergedOptions() #2347

@Mr0nline

Description

@Mr0nline

I have a very similar problem as #1506 , I am using Shopify Node SDK by Monei and I am facing an issue regarding request retries, So basically in production, Some requests are waiting for 30 minutes before hitting the Shopify due to rate limit and I could solve the problem if I could call afterResponse hook from which I could just throw an error when I hit rate limit instead of retrying it but the last known details from that issue is

You can add a new one via the updated options.

So now I want to see what I need to do to get around with the situation? I already tried calling retryWithMergedOptions with different values but I never got to call afterResponse!

Checklist

  • I have read the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions