:+1:
Matched
Url: /tag/丕卮鬲睾丕賱%20夭賳丕賳
Encoded version:
/tag/%D8%A7%D8%B4%D8%AA%D8%BA%D8%A7%D9%84%20%D8%B2%D9%86%D8%A7%D9%86
:cry:
404:
Url:
/tag/賮乇丕讴爻蹖賵賳%20賲丨蹖胤%20夭蹖爻鬲
Encoded version:
/tag/%D9%81%D8%B1%D8%A7%DA%A9%D8%B3%DB%8C%D9%88%D9%86%20%D9%85%D8%AD%DB%8C%D8%B7%20%D8%B2%DB%8C%D8%B3%D8%AA
fastify.get('/tag/:tag', (request, reply) => {
console.log(request.params);
});
When i use small tag it's matches seems be the problem is for long params.
404
match the route and load the route method
I guess you are working with a dynamic routes, so the declaration should be something like /tag/:tagId.
If so, Fastify has a configurable maximum length of the dynamic parameters, which is 100.
You can change it with maxParamLength :)
Most helpful comment
I guess you are working with a dynamic routes, so the declaration should be something like
/tag/:tagId.If so, Fastify has a configurable maximum length of the dynamic parameters, which is 100.
You can change it with
maxParamLength:)