given community name is not valid (when trying to list "unmoderated" tag)
So like getting this: https://blog.openhive.network/trending/introduceyourself
returns with:
Error fetching community: WaxChainApiError [WaxError]: Invalid response from API: {"error":{"code":-32602,"data":"given community name is not valid","message":"Invalid parameters"},"id":1,"jsonrpc":"2.0"}: "{"error":{"code":-32602,"data":"given community name is not valid","message":"Invalid parameters"},"id":1,"jsonrpc":"2.0"}"
at ApiCaller.staticResponseInterceptor (file:///app/node_modules/.pnpm/@hiveio+wax@1.27.6-rc10-stable.250718075612/node_modules/@hiveio/wax/wasm/dist/bundle/detailed/index.js:2963:70)
at callFn (file:///app/node_modules/.pnpm/@hiveio+wax@1.27.6-rc10-stable.250718075612/node_modules/@hiveio/wax/wasm/dist/bundle/detailed/index.js:2930:154)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async d (/app/apps/blog/.next/server/chunks/6314.js:1:24190)
at async $ (/app/apps/blog/.next/server/chunks/2007.js:1:10491)
at async e3 (/app/node_modules/.pnpm/next@14.2.23_@babel+core@7.26.0_@playwright+test@1.49.1_react-dom@18.3.0_react@18.3.0__react@18.3.0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:594)
at async doRender (/app/node_modules/.pnpm/next@14.2.23_@babel+core@7.26.0_@playwright+test@1.49.1_react-dom@18.3.0_react@18.3.0__react@18.3.0/node_modules/next/dist/server/base-server.js:1414:30)
at async cacheEntry.responseCache.get.routeKind (/app/node_modules/.pnpm/next@14.2.23_@babel+core@7.26.0_@playwright+test@1.49.1_react-dom@18.3.0_react@18.3.0__react@18.3.0/node_modules/next/dist/server/base-server.js:1588:28)
at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/.pnpm/next@14.2.23_@babel+core@7.26.0_@playwright+test@1.49.1_react-dom@18.3.0_react@18.3.0__react@18.3.0/node_modules/next/dist/server/base-server.js:1496:28)
at async NextNodeServer.renderPageComponent (/app/node_modules/.pnpm/next@14.2.23_@babel+core@7.26.0_@playwright+test@1.49.1_react-dom@18.3.0_react@18.3.0__react@18.3.0/node_modules/next/dist/server/base-server.js:1924:24) {
apiError: {
error: {
code: -32602,
data: 'given community name is not valid',
message: 'Invalid parameters'
},
id: 1,
jsonrpc: '2.0'
},
[cause]: undefined
}
It's from wax, but it's very obvious that this is not name of the community, so it shouldn't be even called
Similar problem is with case like this: https://blog.openhive.network/somerandomword/anotherrandomword
why it's even processed in a way that it result in calling API? simple regexp can tell that there's no such valid route, apparently, the root cause is that the routing is broken