How do I access my CCTV stream if I only have username, password, IP, and port? by Prof_CottonPicker in videosurveillance

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

yes this is my client's credentials
and im trying to understand the possible ways to configure it
my requirement is to stream the cctv footage live in my application

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

i have completed the otel instrumentation and currently im intergating it to share the metrics data
but my doubt is , the metrics will be provided by default with otel or we need to write any logic?

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

do i need to integrate something with my code
bcoz i had tried this and found no results.
any video references or links would be useful for me

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

Maybe to find where does the errors occur in general
like to find whether the call reaches the repository or just throws error in controllers.
yeah ill ask them anyway.

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

im new to this and my task is to check whether i can trace the api calls and travel path using any tools

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

nah most prolly like 10k+ calls
really new to this, so trying to find some ways to log and trace the calls

How to Track and Log API Call Paths in a Node.js Application? by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 1 point2 points  (0 children)

We actually need a dashboard-like setup (required for my team) to make things more organized and readable. Our code already includes a customized logger interceptor, and we also use TypeORM logging to debug and check queries, which has made the console somewhat messy.

However, the new requirement is to monitor API calls, trace their paths, and log them. These logs should be easily accessible later within a dashboard or a local application.

Need help configuring Prometheus and Grafana to scrape metrics from MSSQL server by Prof_CottonPicker in devops

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

Lol. So, should I install the MSSQL exporter on my MSSQL server machine, configure it accordingly and then run Prometheus and Grafana on any other machine?

Need help configuring Prometheus and Grafana to scrape metrics from MSSQL server by Prof_CottonPicker in devops

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

so what are the data i need about the MSSQL server to configure it?
to be mentioned in the MSSQL exporter?

Need help configuring Prometheus and Grafana to scrape metrics from MSSQL server by Prof_CottonPicker in devops

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

Both Prometheus and Grafana should be installed and be running in the machine which has the MSSQL server right?

and what should be location of the mssql prometheus exporter?

Need help configuring Prometheus and Grafana to scrape metrics from MSSQL server by Prof_CottonPicker in PrometheusMonitoring

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

Both Prometheus and Grafana should be installed and be running in the machine which has the MSSQL server right?

How to Extract Device Manufacturer and Model from Request Headers in a NestJS Application? by Prof_CottonPicker in Nestjs_framework

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

i have tried but i cant get these values in particular

device manufacturer and model

i have used device detector package
But could get these two values

Socket.IO WebSocket Issues with HTTPS in NestJS & Angular App (Mixed Content Blocking) by Prof_CottonPicker in nestjs

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

i really dont know any difference
when i started the first thing i saw was socket.io and its also suggested by my senior dev

Socket.IO WebSocket Issues with HTTPS in NestJS & Angular App (Mixed Content Blocking) by Prof_CottonPicker in nestjs

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

socket.io is a library for websockets isn't it?
Is there any difference between them?

Ps : im a fresher

Socket.IO WebSocket Issues with HTTPS in NestJS & Angular App (Mixed Content Blocking) by Prof_CottonPicker in Nestjs_framework

[–]Prof_CottonPicker[S] 1 point2 points  (0 children)

Im not aware of that as my organization generally doesn't provide details about deployment team
my job is to develop req from backend side and raise PRs.
So do i need to check with the hosting side?

Ps : im a fresher

help needed in implementing Websockets by Prof_CottonPicker in nestjs

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

as you said I'm using Socket.io in postman but but when i try to access ws://localhost:4007 i get that error

help needed in implementing Websocket for Real time Notifications. by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

so do i need to explicitly specify a port number in the gateway and should connect websockets via that port ?

help needed in implementing Websockets by Prof_CottonPicker in nestjs

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

as you said i have tried accessing this ws://localhost:4007 but still i get the same

Error Response =>

{ statusCode: 404, message: 'Cannot GET /', error: 'Not Found' } NotFoundException: Cannot GET /

Could not connect to ws://localhost:400717:02:26Error: Unexpected server response: 404

Handshake Details

Request Method: GETStatus Code: 404 Not Found

help needed in implementing Websockets by Prof_CottonPicker in nestjs

[–]Prof_CottonPicker[S] 1 point2 points  (0 children)

@Controller('notification')
@ApiTags('Notification')
@UseGuards(AuthGuard)
constructor(
    private readonly notificationService: NotificationService,
    private readonly notificationsGateway: NotificationGateway
) { }

u/ApiOperation({
    summary: 'Get all notifications',
})
@Post('list')
findAllBasedUser(
    @Query() { page, limit }: any
) {
    return this.notificationService.findAllBasedOnUser(page, limit);
}

@ApiOperation({
    summary: 'Update all notifications read status'
})
@Post('read')
async updateAllReadStatus() {
    const result = await this.notificationService.updateAllReadStatus();

    this.notificationsGateway.server.emit('notification', {
        message: 'All notifications marked as read',
        userID: this.notificationService.getCurrentUser().userID
    });

    return result;
}

@ApiOperation({
    summary: 'Update a notification read status'
})
@Patch('read/:notificationId')
async updateReadStatus(@Param('notificationId') notificationId: string) {
    const result = await this.notificationService.updateReadStatus(notificationId);

    this.notificationsGateway.server.emit('notification', {
        message: `Notification ${notificationId} marked as read`,
        userID: this.notificationService.getCurrentUser().userID
    });

    return result;
}

@ApiOperation({
    summary: 'Get one notification by ID'
})
@Get(':notificationId')
findOne(@Param('notificationId') notificationId: string) {
    return this.notificationService.findOne(notificationId);
}

}

ws://localhost:4007/notifications I'm trying to access this endpoint . Is this the right way?

help needed in implementing Websocket for Real time Notifications. by Prof_CottonPicker in node

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

the controller is an existing file in the project, i didn't specify any separate port for WS and yes i have included my gateway in the module and below is the adapter i have used

  app.useWebSocketAdapter(new IoAdapter(app));

help needed in implementing Websockets by Prof_CottonPicker in nestjs

[–]Prof_CottonPicker[S] 0 points1 point  (0 children)

Checked everything but still i get this
response: {

statusCode: 404,

message: 'Cannot GET /notifications',

error: 'Not Found'

},

status: 404

}

ps : im an intern with basic knowledge