Skip to content
Discussion options

You must be logged in to vote

Why do I always find the error after posting...
I made a small test server that "crashes" after each request so I could test the retry logic, and it works perfectly. The problem must be in Kubernetes. Sorry for the trouble.

Self crashing nodejs test server ``` const http = require('http'); const { hostname } = require('os'); const path = require('path');

function startWebServer() {
const server = http.createServer(async (req, res) => {
res.setHeader('Content-Type', 'application/json');
const result = {
ok: true,
dt: new Date(),
hostname: hostname(),
method: req.method,
url: req.url,
headers: req.headers,
}
res.end(JSON.stringify(result));
console.log(Request received: ${req.method} ${req…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by skadefro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant