Skip to content

Request with npm package #120

@rafa-acioly

Description

@rafa-acioly

I'm trying to use the npm package "woocommerce-api" a few days ago and am having a problem where the "signature" of the request is invalid.

I first thought that ember was changing the key before making the request, but then a friend informed me that browserify is who handles this package because it is imported using "npm: woocommerce-api".

I tested the package in several frameworks like vue, react, electron and etc, and even using postman, and it works perfectly. It just does not work when I try to use ember.

I have already checked and compared the generator request parameters for the chrome and postman "network" tab, and both look the same except for the "signature" and some other parameters that are changed in all requests such as timestamp.

Nothing seems very different but I still get the "invalid signature" error of the npm package

The Postman Request

postman

The chrome network tab

chrome

Nothing seems very different but I still get the "invalid signature" error in the npm package.

  1. The Woocommerce Package
  2. A example of usage

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