Giter VIP home page Giter VIP logo

shipcloud-ruby's People

Contributors

sfroehler avatar sthollmann avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shipcloud-ruby's Issues

JSON parsing fails

The following request fails:

opening connection to api.shipcloud.io:443...
opened
starting SSL for api.shipcloud.io:443...
SSL established
<- "POST /v1/shipments HTTP/1.1\r\nContent-Type: application/json\r\nUser-Agent: shipcloud-ruby v0.3.0, API v1, 2.1.2, x86_64-darwin13.0, 95\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nAuthorization: Basic OWJiMzU2NDFjMGEyOTZkYzJiNWE1MGViZWNlMWE1YzI6\r\nHost: api.shipcloud.io\r\nContent-Length: 393\r\n\r\n"
<- "{\"carrier\":\"dhl\",\"package\":{\"length\":100.0,\"width\":60.0,\"height\":60.0,\"weight\":10.0,\"description\":\"Buddy\\u0026Selly Sendung\"},\"reference_number\":\"006275\",\"create_shipping_label\":true,\"from\":{\"salutation\":\"Frau\",\"first_name\":\"Linda\",\"last_name\":\"Peeck\",\"company\":\"--\",\"street\":\"Gertigstra\u{df}e\",\"street_no\":\"12-14\",\"zip_code\":\"22303\",\"city\":\"Hamburg\",\"country\":\"Deutschland\"},\"service\":\"returns\"}"
-> "HTTP/1.1 200 OK\r\n"
-> "Cache-Control: max-age=0, private, must-revalidate\r\n"
-> "Content-Encoding: gzip\r\n"
-> "Content-Type: application/json; charset=utf-8\r\n"
-> "Date: Tue, 24 Jun 2014 14:04:27 GMT\r\n"
-> "Server: nginx/1.6.0\r\n"
-> "Status: 200 OK\r\n"
-> "Strict-Transport-Security: max-age=31536000\r\n"
-> "X-Rack-Cache: invalidate, pass\r\n"
-> "X-Request-Id: 31db9f3fb21bee8946851c0959d4a7dd\r\n"
-> "X-Runtime: 2.858922\r\n"
-> "X-UA-Compatible: IE=Edge,chrome=1\r\n"
-> "Content-Length: 197\r\n"
-> "Connection: keep-alive\r\n"
-> "\r\n"
reading 197 bytes...
-> "\x1F\x8B\b\x00\x00\x00\x00\x00\x00\x03U\x8FQ\x0E\x83 \x10D\xEF\xC2w\v\bJ\xD5\xCB\x98e\x81J\xAAB@\xD3\xA4M\xEF^\xB5Im\x7F'o\xDE\xCE>\x897\xA4%N\t\xE7\x8Cl,\x1A\xD0\x12\x95i\xA4+l\xA9.\x06\e\xE1T\xA5l\xAD\x05\x82#'\x82\x90\x92\xB7\xA9\x9B\x13\xE0\xCDO\xD7n\n\xAB\x80sY\xF2R\xCAZrQV\x85\xA8\x1A\xC1W\xF8\v-iX\xA9~\x9Ecn\x19\xDBc\x9A{\x1Fq\b\x8B\xA1>\xB0c\xC1Z\e@\xDB\xA1\xFB\xEFd<\xEFq\xA6YR\x18\xE1\x11&\xB8g\x8Aad\x9Bh\xB4\xD3\x9C\x19j\x03\x97\xBA\xD0?:\xB6\xB7v&ns?\xEE\xE3\x1C\x8Df{+&\x8F\x96\xB4\x9C\xF2\xD7\eZ\xFBc\xCF\x14\x01\x00\x00"
read 197 bytes
Conn keep-alive
[c6d566d3-5c93-4d21-b803-85eb41564b96] [127.0.0.1] [2014-06-24 16:04:24 +0200] Completed 500 Internal Server Error in 5159ms
[c6d566d3-5c93-4d21-b803-85eb41564b96] [127.0.0.1] [2014-06-24 16:04:24 +0200]   �[1m�[36mApiKey Load (1.0ms)�[0m  �[1mSELECT `api_keys`.* FROM `api_keys` WHERE `api_keys`.`access_token` = '8f43d0efe59be0e49531cb83c03e90fc' LIMIT 1�[0m
[c6d566d3-5c93-4d21-b803-85eb41564b96] [127.0.0.1] [2014-06-24 16:04:24 +0200]   �[1m�[35mUser Load (0.9ms)�[0m  SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1
[c6d566d3-5c93-4d21-b803-85eb41564b96] [127.0.0.1] [2014-06-24 16:04:24 +0200] ** [Airbrake] Notice was not sent due to configuration:         
  Environment Monitored? false         
  API key set? true
[c6d566d3-5c93-4d21-b803-85eb41564b96] [127.0.0.1] [2014-06-24 16:04:24 +0200] 
JSON::ParserError - 757: unexpected token at '���':
  /Users/bvogel/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/json/common.rb:155:in `parse'
  shipcloud (0.3.0) lib/shipcloud/request/validator.rb:15:in `validated_data_for'
  shipcloud (0.3.0) lib/shipcloud/request/base.rb:15:in `perform'
  shipcloud (0.3.0) lib/shipcloud.rb:84:in `request'
  shipcloud (0.3.0) lib/shipcloud/operations/create.rb:9:in `create'

This is shipcloud 0.3.0, Rails 4.0.5, Ruby 2.1.2p95

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.