Skip to content

[Bug]: retrieveStatelessRates does not return error messages #516

@chencozocaru

Description

@chencozocaru

Software Version

6 and 8

Language Version

Node 20

Operating System

Mac

What happened?

retrieveStatelessRates does not return error messages.

You can see the implementation here:
https://github.com/EasyPost/easypost-node/blob/master/src/services/beta_rate_service.js

It returns an empty array of rates, but does not expose any error messages.
return this._convertToEasyPostObject(response.body.rates, wrappedParams);

I used this instead:
await client['_post'](url, wrappedParams)

What was expected?

I would expect a way to get the error messages after calling retrieveStatelessRates ( or a new retrieveStatelessRatesV2 )

Sample Code

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue is being researched

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions