Replies: 2 comments 5 replies
-
|
Hi @simbwa , can you post the full error message and ideally the corresponding line from Couper's log output? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @simbwa , This works with server {
api {
endpoint "/prod/rx/9000/mo" {
request {
method = "POST"
json_body = {
id = request.id
msgType = "mo"
shortCode = "9K"
srcId = "XX1"
srcTypeId = "aggregator"
msisdn = request.query.phone_no[0]
msg = request.query.message[0]
b64encoded = base64_encode(default(request.query.message[0], "empty"))
tstamp = unixtime()
srcReq = {
URL = request.url
Headers = request.headers
}
}
backend = "my_service"
}
response {
json_body = backend_responses.default.json_body.data
}
}
}
}
definitions {
backend "my_service" {
origin = "https://httpbin.org"
path = "/post"
}
}You could also following this example which could match your case: https://github.com/avenga/couper-examples/tree/master/custom-requests Path not found: If you still see a not found error from Couper, change the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks.
Getting a "route not found error" from avenga/couper when I put an API gateway powered by avenga/couper behind Traefik.
Essentially, Traefik is the primary web proxy and avenger/couper acts as middleware to transform GET requests with query params to JSON to be posted to an internal microservice that accepts only JSON POST requests.
Am testing out avenger/couper for the first time and am still learning & experimenting with it.
Please point me in the right direction on how to fix this issue.
Beta Was this translation helpful? Give feedback.
All reactions