Open kafle1 opened 6 months ago
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
Hi @kafle1, thank you for reporting the issue. Can you please provide min reproduction repo for that issue?
@flamewow, if i could provide you the reproduction step, i would also have solved the issue, but unfortunately couldnt find where is it coming from, temporarily fixed by commenting out all the @AsyncApiPub
Same error on NestJS 10 + Fastify Platform
Dig some errors here
Ok. I comment auth, and lib starts now:
// .addBearerAuth(
// {
// type: "apiKey",
// name: "Authorization",
// in: "header",
// description: "Access Token",
// },
// "access",
// )
@kafle1 Can you provide your setup code, please?
const asyncApiOptions = new AsyncApiDocumentBuilder()
.setTitle('Me Portal')
.setDescription('test')
.setVersion('1.0')
.setDefaultContentType('application/json')
.addSecurity('user-password', { type: 'userPassword' })
.addServer('server', {
url: BASE_URL.backend,
protocol: 'socket.io',
protocolVersion: '4',
description: 'Allows you to connect using thewebsocket protocol to our socket.io server',
security: [{ 'user-password': [] }],
variables: {
PORT: {
description: 'Secure connection (TLS) is available through port 443',
default: '443',
},
},
bindings: {},
})
.build();
const asyncapiDocument = AsyncApiModule.createDocument(app, asyncApiOptions);
await AsyncApiModule.setup('/docs/socket', app, asyncapiDocument);
@n0isy
Describe the bug Getting this error:
These are my dependencies
Nest version: 10.3.3 "nestjs-asyncapi": "^1.3.0",
Am using pnpm, tried with yarn and npm. still same error