Skip to content

Addressable::URI::InvalidURIError (Invalid scheme format: {"email") #17

@viswaraj

Description

@viswaraj

Hi,
I got the Invalid scheme format. When try to add a client.

response = @client.post("/clients.json", { 'package_id' => APP_CONFIG[:netdna_package_id], 'name' => "viswaraj", 'alias' => "thg", 'status' => 2, 'account_owner' => {"email"=>"sviswaraj@gmail.com", "password"=>"test1234", "firstname"=>"viswaraj", "lastname"=>"Somarajan", "phone"=>"9633555797", "active"=>1}.to_json, 'address' => {"street1"=>"kaloor", "street2"=>"kaloor", "city"=>"Cochin", "state"=>"Kerala", "zip"=>"564666", "country"=>"IN"}.to_json })
Traceback (most recent call last):
1: from (irb):16
Addressable::URI::InvalidURIError (Invalid scheme format: {"email")

Can you help me to fix the issue?

Regards,
Viswaraj

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions