Skip to content

retry on 50x errors (i'm new to java and sparkpost client) #79

@dfuentes77

Description

@dfuentes77

I tried to implement it in our code with logic like this, but it's not working. I'd totally appreciate any assistance/guidance in checking the response code properly:

catch (SparkPostErrorServerResponseException spex) {
...
else if (500 <= spex.getResponseCode() && spex.getResponseCode() < 510){
	Logger.log("Sparkpost " + spex.getResponseCode() + " errors, skipping for now: " + em.id);
...

Thanks!

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