0

I have a node js application for a slack-bot deployed on StdLib for a slack-bot application that I created using the following tutorial: Build a serverless slack bot in 9 minutes with node js and stdlib

Now, everything is up and running, but I just want to see the logs of my application from StdLib.

I am already logged in as the authenticated user from my terminal and I am able to execute the command lib up dev successfully.

But, now when I try to view the logs using the command: lib logs dev, i get the following error:

Error: You must be signed in as a service's owner or be part of the service's team to to view logs for a service

Can anyone help me understand what i am doing wrong and how to access the dev logs from StdLib?

EDIT: I also tried logging in again by using lib login --email <my email> and then again tried lib logs dev, but it resulted in the same error as above.

Interestingly, even after logging in, if I do lib info dev, It gives me the error Error: Bad Request: "<my username>" does not have permission to access "dev"

4

1 回答 1

0

所以,万一其他人被困在同一个...

我可以通过查看以下文档来解决这个问题: https ://docs.stdlib.com/main/#/creating-services/logging

基本上我需要以特定方式提供用户名和应用程序名称,如下所示:

lib logs <my username>.<my app>[@dev]

提到的错误有点令人困惑,我无法根据错误解读我做错了什么。

于 2017-11-04T22:24:57.700 回答