Skip to content

/create-collection and /edit-collection #2560

@ThalesACarvalho

Description

@ThalesACarvalho

Description

The routes aren't working properly. The create is returning a graphql error:

{
"status": "success",
"response": {
"type": "graphql-error",
"error": {
"name": "GraphQLServerError",
"source": {
"errors": [
{
"message": "A server error noncoercible_variable_value occured. Check server logs for details.",
"severity": "CRITICAL",
"code": 1675012,
"api_error_code": null,
"summary": "Your Request Couldn't be Processed",
"description": "There was a problem with this request. We're working on getting it fixed as soon as we can.",
"description_raw": "There was a problem with this request. We're working on getting it fixed as soon as we can.",
"is_silent": false,
"is_transient": false,
"is_not_critical": false,
"requires_reauth": false,
"allow_user_retry": false,
"debug_info": null,
"query_path": null,
"fbtrace_id": "G+vGbFuqotQ",
"www_request_id": "Am-AxIunKjQ_UtqKEE4r4cC"
}
]
}
}
},
"session": "3258"
}

And the edit is only changing the name, we can't change (add ou remove) the products

Environment

  • WPPConnect version(s): X.Y.Z
  • WA-JS version(s): X.Y.Z
  • Browser: Chromium XX
  • OS: Windows X
  • Node version: Node 20
  • WhatsApp version: X.YYYY.ZZ
  • MultiDevice (BETA): yes/no

Steps to Reproduce

  1. Create a product
  2. Try to create a collection with it
  3. Create the collection manualy
  4. Try to edit it with /edit

Log Output

If relevant, paste all of your Log Output

Your Code

If relevant, paste all of your challenge code in here

Additional context / Screenshot

I've noticed that the wa-js expect other names on the payload, like productsIds and collectionName but I don't know how to correct it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions