• Resolved DeafJoe

    (@deafjoe)


    On fresh installs of plugin, the setup wizard fails with the following in the Auth0 error log:

    WP_Auth0_Api_Client::create_client N/A {"statusCode":400,"error":"Bad Request","message":"Payload validation error: 'String does not match pattern ^[^<>]+$: ' on property name (The name of the client. Must contain at least one character. Does not allow '<' or '>').","errorCode":"invalid_body"}

    My workaround was to create the client, copy keys, then re-run wizard, then create connection d/b, Auth0 settings to use that connection, copy connection name into WP Plugin settings.

Viewing 5 replies - 1 through 5 (of 5 total)
  • It looks like your site name has an invalid character maybe? What name did you use? We might be able to filter that a little better before trying to save it.

    Thread Starter DeafJoe

    (@deafjoe)

    Site name is domain name, which is: my-subscriptions.management
    I appreciate the quick response.

    I just tried this out with a number of different site names and, as expected, they were accepted and, if needed, removed from the final client name used.

    I was, however, able to get that error message if I saved an empty site name at wp-admin > Settings > General > “Site Title” and ran the process.

    Are there any malformed filters or anything that might give you a null or empty site title value? Can you check that get_bloginfo( 'name' ) outputs something?

    Thread Starter DeafJoe

    (@deafjoe)

    Well spotted … the site title was blank!

    Suggest that Setup Wizard should auto remove illegal characters and then check if result is blank and if so alert user to that effect (or perhaps in the blank case use the domain).

    I gave the site a title. Deactivated and deleted the plugin, deleted wp_options table rows where key contained “auth0”. In Auth0 deleted the Client and the Connection Database.
    Added plugin and did Setup Wizard, ran without issue to completion.

    I will amend my review to reflect the fast response, tenacity and helpfulness of your support.

    Thanks @deafjoe, glad this is all operating as expected and I appreciate the review adjustment. As part of your report here, I have a fix in process now for empty site titles (I didn’t know WP would save a blank one but sure enough):

    https://github.com/auth0/wp-auth0/blob/fixed-client-create-links/WP_Auth0.php#L480

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Auth0 Setup Wizard fails’ is closed to new replies.