Send Notecard file to server with Notehub Web Proxy Error

To send log file, made by base64 encoding, I Already set Web Proxy like image. And set outbound request transform like this

{

“req”: “web.post”,

“route”: “log-test-server”,

“body”: {

“fileBase64”: body.fileBase64 ~> $default(“”),

“name”: body.name,

“deviceName”: body.deviceName ~> $default(“noName”)

}

}

Send file to server, i got a error log:

{“Allow”:[“GET, HEAD”],“Cache-Control”:[“no-cache, no-store, max-age=0, must-revalidate”],“Content-Type”:[“application/json;charset=UTF-8”],“Date”:[“Thu, 02 Oct 2025 11:53:07 GMT”],“Expires”:[“0”],“Pragma”:[“no-cache”],“Server”:[“Apache/2.4.58 (Ubuntu)”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“DENY”],“X-Xss-Protection”:[“1; mode=block”]}

At server i got a error log: 2025-10-02 11:53:07.566 WARN 1216356 — [io-8099-exec-10] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST’ not supported]

I set spring controller:

@RequestMapping(value = "/free/upload", method = RequestMethod.POST)

Why this situation occured? And How to solve this situation?

Hey @sglee99,

Everything on the Notecard/Notehub side of things looks ok to me.

I see that you have some backend configuration to set up your endpoint to accept POST requests, but from this error message it looks like perhaps that’s not working as intended.

[org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST’ not supported]

To help figure out what’s wrong, I’d start by updating your proxy route to point to an endpoint on https://webhook.site. With webhook.site you can ensure data is being passed from Notecard/Notehub in the format you expect as a first step.

If that works we can move on to trying to figure out what might not be working on your server.

Oh, and one unrelated thing: when sending base64 data with Notecard it’s always more efficient to use the payload argument instead of putting your raw data in the body.

TJ