PipedreamHQ / pipedream

Connect APIs, remarkably fast. Free for developers.
https://pipedream.com
Other
8.81k stars 5.27k forks source link

[BUG] Wordpress.org create user action fails when role is specified #3139

Closed Clausinho closed 2 years ago

Clausinho commented 2 years ago

Describe the bug Whenever I try to add a role to the specific wordpress "create user" step, I get an error. Whenever I do not fill out the role, it works. It also fails, when the array is equal to "".

(the error message is never expanded though, i.e. if the user already exists) To Reproduce Steps to reproduce the behavior:

  1. add a new wordpress "create_user" action
  2. Fill out the required fields + the roles field
  3. click test
  4. See error [object Object]

Expected behavior

Screenshots success without "roles" image

error when added roles image

Additional context Logs when failed:

/14/2022, 1:20:55 PM [SyntaxError: Invalid regular expression: /issues(/: Unterminated group]
6/14/2022, 1:20:55 PM Endpoint detected, proceeding despite error...
6/14/2022, 1:20:55 PM Binding to https://shop.foto-dino.de/wp-json/ and assuming default routes

case was not tested by https://github.com/PipedreamHQ/pipedream/pull/2757#issuecomment-1124000864 might be related to #2757 and #1522 Workaround if you only need a single role, you can use this setting, which you can find under /wp-admin/options-general.php image

ghost commented 2 years ago

@michelle0927

image
dannyroosevelt commented 2 years ago

This is ready for release!