Title: Escher Put Request · Issue #5 · emartech/escher-java · GitHub
Open Graph Title: Escher Put Request · Issue #5 · emartech/escher-java
X Title: Escher Put Request · Issue #5 · emartech/escher-java
Description: Hi, was trying to do a PUT request (following the testTheSimplestGetRequest() example in the escher-java/src/test/java/com/emarsys/escher/acceptance/AcceptanceTests.java file). My Test method looks as follows: @Test public void testTheSi...
Open Graph Description: Hi, was trying to do a PUT request (following the testTheSimplestGetRequest() example in the escher-java/src/test/java/com/emarsys/escher/acceptance/AcceptanceTests.java file). My Test method looks...
X Description: Hi, was trying to do a PUT request (following the testTheSimplestGetRequest() example in the escher-java/src/test/java/com/emarsys/escher/acceptance/AcceptanceTests.java file). My Test method looks...
Opengraph URL: https://github.com/emartech/escher-java/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Escher Put Request","articleBody":"Hi,\r\nwas trying to do a PUT request (following the testTheSimplestGetRequest() example in the escher-java/src/test/java/com/emarsys/escher/acceptance/AcceptanceTests.java file).\r\n\r\nMy Test method looks as follows:\r\n```\r\n @Test\r\n public void testTheSimplestPutRequest() throws Exception {\r\n HttpRequestBase put = new HttpPut(\"https://xyz:443/api/api-services/\");\r\n\r\n String body = \"String test body\";\r\n\r\n put = client.signPutRequest(put, body);\r\n String response = client.sendRequest(put);\r\n }\r\n```\r\n\r\ni have also modified the signRequest() to now accept a body like so:\r\n\r\n```\r\n public HttpRequestBase signPutRequest(HttpRequestBase request, String body) throws EscherException {\r\n EscherRequestClientImpl escherRequest = new EscherRequestClientImpl(request, body);\r\n escher.signRequest(escherRequest, ESCHER_ACCESS_KEY_ID, ESCHER_SECRET, new ArrayList\u003c\u003e());\r\n return escherRequest.getHttpRequest();\r\n }\r\n```\r\n\r\nThis returns the following error:\r\n\r\n{\"message\":\"HTTP Status 401 - verification failed for axbbc-9459-4798-a6cb-sddff: The signatures do not match (provided: xbxbxbxbx, calculated: fbfbfbf). path: api/api-services\",\"errors\":{}}\r\n\r\nversion: 0.3.1\r\n\r\nAny ideas or any example on how to sign a PUT or POST request ?\r\nThanks","author":{"url":"https://github.com/invent360","@type":"Person","name":"invent360"},"datePublished":"2021-06-07T14:52:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/escher-java/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c6c74ef-a14e-a603-a8b1-5da985d8fbaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADB8:62128:D44CE:11B471:698E4AFD |
| html-safe-nonce | 0c8eec50b5db1364f7d4acf8e507937844e8279729b7b5081588434c8d812c7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREI4OjYyMTI4OkQ0NENFOjExQjQ3MTo2OThFNEFGRCIsInZpc2l0b3JfaWQiOiI1NDIzNzg5NTUxNTM2ODkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d30d5f0f543a02bde379c27fa221091736f7ea3986836a3648d73050d2b2e03 |
| hovercard-subject-tag | issue:913636557 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/emartech/escher-java/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/737638eb45b26e3a6ac5a4ca8e25768bbe21ce6f2fc1d96ee9f45d47418f5fb0/emartech/escher-java/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/737638eb45b26e3a6ac5a4ca8e25768bbe21ce6f2fc1d96ee9f45d47418f5fb0/emartech/escher-java/issues/5 |
| og:image:alt | Hi, was trying to do a PUT request (following the testTheSimplestGetRequest() example in the escher-java/src/test/java/com/emarsys/escher/acceptance/AcceptanceTests.java file). My Test method looks... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | invent360 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc |
| turbo-cache-control | no-preview |
| go-import | github.com/emartech/escher-java git https://github.com/emartech/escher-java.git |
| octolytics-dimension-user_id | 7631791 |
| octolytics-dimension-user_login | emartech |
| octolytics-dimension-repository_id | 30177362 |
| octolytics-dimension-repository_nwo | emartech/escher-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30177362 |
| octolytics-dimension-repository_network_root_nwo | emartech/escher-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab1cf30f0feb8db377fc0d52bc41f0105f9b4181 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width