Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
paypal_logs
I, [2016-11-01T12:45:26.093685 #73] INFO -- : PayPal-Request-Id: 547e39c4-dce9-4dbd-89c5-42e9f5a37d2d
I, [2016-11-01T12:45:26.093823 #73] INFO -- : Request[post]: https://api.sandbox.paypal.com/v1/oauth2/token
D, [2016-11-01T12:45:26.093917 #73] DEBUG -- : Request.body=grant_type=client_credentials request.header={"User-Agent"=>"PayPalSDK/PayPal-Ruby-SDK 1.5.0 (paypal-sdk-core 1.5.0; ruby 2.3.1p112-x86_64-linux-gnu;OpenSSL 1.0.2g 1 Mar 2016)", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic QWRLbU5FOTNLN0tITWNyWWMwZTZvX1czbFo0alZKTVhKOXBhSWVKMURCWG5ac0VPSEVsMnRXRldVUTMyNGloMlBoNlhWUTd4RnloQ3pKc2I6RUk1cWd5ZWV3d3JIMkNWTTNTSVBQc0cydUN6a0lId2xpOE1RMWxpZFVkYkNwNHdVampkUlZLVHZBVzFPRHhGQS1vMk9raTZZZ0pRRUJ0NGU=", "PayPal-Request-Id"=>"547e39c4-dce9-4dbd-89c5-42e9f5a37d2d"}
I, [2016-11-01T12:45:27.352524 #73] INFO -- : Response[200]: OK, Duration: 1.259s
D, [2016-11-01T12:45:27.352755 #73] DEBUG -- : Response.body={"scope":"https://uri.paypal.com/services/subscriptions https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card https://uri.paypal.com/services/applications/webhooks openid https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.*","nonce":"2016-11-01T12:35:04ZUYXJHUly7OqrygVYbwY6xEXNY0-m_25f5JKxUwWo9uU","access_token":"A101.CY5vNDUxy2wH6t9mZZWJisvzyiwbOymeOL-hmIblOFWWSnLl9cd78h7FN_56AKHT.L3oU7513KcRQwN-I8I2YYkPMPwi","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":31777} Response.header={"date"=>["Tue, 01 Nov 2016 12:45:27 GMT"], "server"=>["Apache"], "proxy_server_info"=>["host=slcsbplatformapiserv3001.slc.paypal.com;threadId=784"], "paypal-debug-id"=>["d5ebb4ac2313e", "d5ebb4ac2313e"], "correlation-id"=>["d5ebb4ac2313e"], "x-paypal-token-service"=>["IAAS"], "set-cookie"=>["X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D1737365592%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Tue, 01 Nov 2016 13:15:27 GMT; domain=.paypal.com; path=/; Secure; HttpOnly", "X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT"], "vary"=>["Authorization"], "content-length"=>["550"], "connection"=>["close"], "content-type"=>["application/json"]}
I, [2016-11-01T12:45:27.356010 #73] INFO -- : PayPal-Request-Id: 547e39c4-dce9-4dbd-89c5-42e9f5a37d2d
I, [2016-11-01T12:45:27.356101 #73] INFO -- : Request[post]: https://api.sandbox.paypal.com/v1/payments/billing-agreements/
D, [2016-11-01T12:45:27.356220 #73] DEBUG -- : Request.body={"name":"T-Shirt of the Month Club Agreement","description":"Agreement for T-Shirt of the Month Club Plan","start_date":"2016-12-19T00:37:04Z","payer":{"payment_method":"paypal"},"plan":{"id":"P-1K47639161110773GYDKTWIA"}} request.header={"Authorization"=>"Bearer A101.CY5vNDUxy2wH6t9mZZWJisvzyiwbOymeOL-hmIblOFWWSnLl9cd78h7FN_56AKHT.L3oU7513KcRQwN-I8I2YYkPMPwi", "Content-Type"=>"application/json", "User-Agent"=>"PayPalSDK/PayPal-Ruby-SDK 1.5.0 (paypal-sdk-core 1.5.0; ruby 2.3.1p112-x86_64-linux-gnu;OpenSSL 1.0.2g 1 Mar 2016)", "PayPal-Request-Id"=>"547e39c4-dce9-4dbd-89c5-42e9f5a37d2d"}
I, [2016-11-01T12:45:29.429675 #73] INFO -- : Response[401]: Unauthorized, Duration: 2.073s
W, [2016-11-01T12:45:29.429909 #73] WARN -- : Response.body={"name":"UNAUTHORIZED_ACCESS","details":[{"field":"unauthorized_access","issue":"You don't have permission to access this resource."}],"message":"You don't have permission to access this resource.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#UNAUTHORIZED_ACCESS","debug_id":"83afc1435a671"} Response.header={"date"=>["Tue, 01 Nov 2016 12:45:28 GMT"], "server"=>["Apache"], "proxy_server_info"=>["host=slcsbplatformapiserv3002.slc.paypal.com;threadId=396"], "paypal-debug-id"=>["83afc1435a671", "83afc1435a671"], "correlation-id"=>["83afc1435a671"], "content-language"=>["*"], "set-cookie"=>["X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D1754142808%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Tue, 01 Nov 2016 13:15:29 GMT; domain=.paypal.com; path=/; Secure; HttpOnly", "X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT"], "vary"=>["Authorization"], "content-length"=>["323"], "connection"=>["close"], "content-type"=>["application/json"]}
I, [2016-11-01T12:45:29.430121 #73] INFO -- : PayPal-Request-Id: 547e39c4-dce9-4dbd-89c5-42e9f5a37d2d
I, [2016-11-01T12:45:29.430205 #73] INFO -- : Request[post]: https://api.sandbox.paypal.com/v1/oauth2/token
D, [2016-11-01T12:45:29.430300 #73] DEBUG -- : Request.body=grant_type=client_credentials request.header={"User-Agent"=>"PayPalSDK/PayPal-Ruby-SDK 1.5.0 (paypal-sdk-core 1.5.0; ruby 2.3.1p112-x86_64-linux-gnu;OpenSSL 1.0.2g 1 Mar 2016)", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic QWRLbU5FOTNLN0tITWNyWWMwZTZvX1czbFo0alZKTVhKOXBhSWVKMURCWG5ac0VPSEVsMnRXRldVUTMyNGloMlBoNlhWUTd4RnloQ3pKc2I6RUk1cWd5ZWV3d3JIMkNWTTNTSVBQc0cydUN6a0lId2xpOE1RMWxpZFVkYkNwNHdVampkUlZLVHZBVzFPRHhGQS1vMk9raTZZZ0pRRUJ0NGU=", "PayPal-Request-Id"=>"547e39c4-dce9-4dbd-89c5-42e9f5a37d2d"}
I, [2016-11-01T12:45:30.684425 #73] INFO -- : Response[200]: OK, Duration: 1.254s
D, [2016-11-01T12:45:30.684646 #73] DEBUG -- : Response.body={"scope":"https://uri.paypal.com/services/subscriptions https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card https://uri.paypal.com/services/applications/webhooks openid https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.*","nonce":"2016-11-01T12:35:04ZUYXJHUly7OqrygVYbwY6xEXNY0-m_25f5JKxUwWo9uU","access_token":"A101.CY5vNDUxy2wH6t9mZZWJisvzyiwbOymeOL-hmIblOFWWSnLl9cd78h7FN_56AKHT.L3oU7513KcRQwN-I8I2YYkPMPwi","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":31774} Response.header={"date"=>["Tue, 01 Nov 2016 12:45:30 GMT"], "server"=>["Apache"], "proxy_server_info"=>["host=slcsbplatformapiserv3001.slc.paypal.com;threadId=714"], "paypal-debug-id"=>["183cd94171c05", "183cd94171c05"], "correlation-id"=>["183cd94171c05"], "x-paypal-token-service"=>["IAAS"], "set-cookie"=>["X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D1787697240%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Tue, 01 Nov 2016 13:15:30 GMT; domain=.paypal.com; path=/; Secure; HttpOnly", "X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT"], "vary"=>["Authorization"], "content-length"=>["550"], "connection"=>["close"], "content-type"=>["application/json"]}
I, [2016-11-01T12:45:30.684884 #73] INFO -- : PayPal-Request-Id: 547e39c4-dce9-4dbd-89c5-42e9f5a37d2d
I, [2016-11-01T12:45:30.684959 #73] INFO -- : Request[post]: https://api.sandbox.paypal.com/v1/payments/billing-agreements/
D, [2016-11-01T12:45:30.685030 #73] DEBUG -- : Request.body={"name":"T-Shirt of the Month Club Agreement","description":"Agreement for T-Shirt of the Month Club Plan","start_date":"2016-12-19T00:37:04Z","payer":{"payment_method":"paypal"},"plan":{"id":"P-1K47639161110773GYDKTWIA"}} request.header={"Authorization"=>"Bearer A101.CY5vNDUxy2wH6t9mZZWJisvzyiwbOymeOL-hmIblOFWWSnLl9cd78h7FN_56AKHT.L3oU7513KcRQwN-I8I2YYkPMPwi", "Content-Type"=>"application/json", "User-Agent"=>"PayPalSDK/PayPal-Ruby-SDK 1.5.0 (paypal-sdk-core 1.5.0; ruby 2.3.1p112-x86_64-linux-gnu;OpenSSL 1.0.2g 1 Mar 2016)", "PayPal-Request-Id"=>"547e39c4-dce9-4dbd-89c5-42e9f5a37d2d"}
I, [2016-11-01T12:45:32.633616 #73] INFO -- : Response[401]: Unauthorized, Duration: 1.948s
W, [2016-11-01T12:45:32.633867 #73] WARN -- : Response.body={"name":"UNAUTHORIZED_ACCESS","details":[{"field":"unauthorized_access","issue":"You don't have permission to access this resource."}],"message":"You don't have permission to access this resource.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#UNAUTHORIZED_ACCESS","debug_id":"f69e877c8967e"} Response.header={"date"=>["Tue, 01 Nov 2016 12:45:31 GMT"], "server"=>["Apache"], "proxy_server_info"=>["host=slcsbplatformapiserv3001.slc.paypal.com;threadId=502"], "paypal-debug-id"=>["f69e877c8967e", "f69e877c8967e"], "correlation-id"=>["f69e877c8967e"], "content-language"=>["*"], "set-cookie"=>["X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D1804474456%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Tue, 01 Nov 2016 13:15:32 GMT; domain=.paypal.com; path=/; Secure; HttpOnly", "X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT"], "vary"=>["Authorization"], "content-length"=>["323"], "connection"=>["close"], "content-type"=>["application/json"]}
/var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/util/http_helper.rb:137:in `handle_response': Failed. Response code = 401. Response message = Unauthorized. Response debug ID = f69e877c8967e, f69e877c8967e. (PayPal::SDK::Core::Exceptions::UnauthorizedAccess)
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/api/rest.rb:111:in `handle_response'
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/util/http_helper.rb:78:in `http_call'
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/api/base.rb:86:in `api_call'
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/api/rest.rb:101:in `rescue in api_call'
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/api/rest.rb:95:in `api_call'
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/core/api/base.rb:98:in `post'
from /var/lib/gems/2.3.0/gems/paypal-sdk-rest-1.5.0/lib/paypal-sdk/rest/data_types.rb:2146:in `create'
from paypal_plan.rb:83:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment