Can not Authenticate with API

Discussion in 'Shapeways API' started by minichua, Aug 16, 2014.

  1. minichua
    minichua Active Member
    I cannot authenticate anymore. When I request a new token, I get the following error:

    A fatal error occurred during getRequestToken
    Exception : Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)
    Query response headers :
    array(5) {
    'url' =>
    string(48) "https://api.shapeways.com/oauth1/request_token/v1"
    'http_code' =>
    int(401)
    'content_type' =>
    string(31) "application/json; charset=utf-8"
    'size_download' =>
    double(108)
    'size_upload' =>
    double(0)
    }
    Oauth debugInfo :
    array(4) {
    'sbs' =>
    string(288) " GET&http%3A%2F%2Fapi.shapeways.com%2Foauth1%2Frequest_to ken%2Fv1&oauth_callback%3Doob%26oauth_consumer_key%xxxxx xxxxxxxxxxxxxxxxx%26oauth_nonce%yyyyyyyyyyyyyyyyyyyyy%26oaut h_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D140820553 9%26oauth_version%3D1.0 "
    'headers_sent' =>
    string(285) "Authorization: OAuth oauth_callback="oob",oauth_consumer_key="xxxxxxxxxxxxxxxxxxxxxx ",oauth_signature_method="HMAC-SHA1",oauth_nonce="yyyyyyyyyyyyyyyyyyyyy ",oauth_timestamp="1408205539",oauth_version="1.0",oauth_signature= "%zzzzzzzzzzzzzzzzzz%3D""
    'headers_recv' =>
    string(530) "HTTP/1.1 401 Unauthorized
    Date: Sat, 16 Aug 2014 19:06:15 GMT
    Content-Type: application/json; charset=utf-8
    Connection: close
    Set-Cookie: __cfduid=yyyyyyyyyyyyyyyyyyyyyyyy; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.shapeways.com; HttpOnly
    X-Powered-By: PHP/5.3.10-1ubuntu3.11
    Status: 401 Unauthorized
    Cache-Control: no-cache, must-revalidate
    Expires: Mon, 26 Jul 1997 05:00:00 GMT
    Vary: Accept-Encoding
    Set-Cookie: whid=8; path=/
    Server: cloudflare-nginx
    CF-RAY: 15"...
    'body_recv' =>
    string(108) "{"result":"failure","reason":"Authentication Error","oauth_error_message":"oauth_problem=timestamp_refused "}"
    }
     
  2. minichua
    minichua Active Member
    working again...