Skip to content

Cannot create users with '-' in email address #22

@gadg3ts

Description

@gadg3ts

I'm having to write some wrapper scripts for our user management and am trying to use your library.
Works fine as username@example.com but not user-name@example.com

PHP Fatal error: Uncaught exception 'HipChat\HipChat_Exception' with message 'HipChat API error: code=500, info=HTTP status code: 500, response={"error":{"code":500,"type":"Internal Server Error","message":"Unable to create user"}}, url=https://hipchat.example.com/v1/users/create' in /root/hipchat/hipchat-php/src/HipChat/HipChat.php:390
Stack trace:
#0 /root/hipchat/hipchat-php/src/HipChat/HipChat.php(442): HipChat\HipChat->curl_request('https://hipchat...', Array)
#1 /root/hipchat/hipchat-php/src/HipChat/HipChat.php(274): HipChat\HipChat->make_request('users/create', Array, 'POST')
#2 /root/hipchat/hipchat-php/manage_user.php(66): HipChat\HipChat->create_user('it-notice@examp...', 'A irworf', 'airwolf')
#3 {main}

thrown in /root/hipchat/hipchat-php/src/HipChat/HipChat.php on line 390

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions