Skip to main content
The Node SDK returns an empty string for expected Era service failures. Your application can make its model call without Era context.

Behavior by condition

Retry behavior

The default is one retry. Set maxRetries to change it:
Only transient failures are retried. A 4xx response usually means the API key, partner ID, or request is wrong, so retrying the same request will not help.

Logging

Warnings use console.warn by default. Pass your own logger if needed:
Set debug: true to enable informational logs when you use the default logger. Fail-open behavior does not hide errors in your own code. For example, the Era constructor still throws when mode is not "async" or "sync".