AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-180008

Alex's questions

Martin Hope
Alex
Asked: 2025-03-28 20:08:31 +0800 CST

如何为“团队”频道创建“工作流”以便向该频道发送消息?

  • 6

按照此页面上的说明进行操作:

https://support.microsoft.com/en-us/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498

我创建了一个“工作流”。我将通过该过程获得的 URL 复制到变量中URL。然后,我尝试在 Linux 终端上使用以下命令向此 URL 发送 POST:

export DATA='{"key1": "value1", "key2": "value2"}'
export URL="https://..."
curl -X POST "$URL" -H "Content-Type: application/json" -d "$DATA"

但是我既没有从该命令得到任何输出,也没有在该团队频道上收到任何新消息。当我运行curlwith时-v,我得到以下输出:

Note: Unnecessary use of -X or --request, POST is already inferred.
* Host prod-237.westeurope.logic.azure.com:443 was resolved.
* IPv6: (none)
* IPv4: 108.142.31.202
*   Trying 108.142.31.202:443...
* Connected to prod-237.westeurope.logic.azure.com (109.142.32.202) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / secp521r1 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: C=US; ST=WA; L=Redmond; O=Microsoft Corporation; CN=westeurope.logic.azure.com
*  start date: Feb 12 21:35:47 2025 GMT
*  expire date: Aug 11 21:35:47 2025 GMT
*  subjectAltName: host "prod-247.westeurope.logic.azure.com" matched cert's "*.westeurope.logic.azure.com"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft Azure RSA TLS Issuing CA 03
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha384WithRSAEncryption
*   Certificate level 1: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
*   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/1.x
> POST /workflows/ff29670cf3154471a77ae5863370e3f1/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=zFkzcMt8Pf8RnxCOh7jNhal8VKHAzLY5hBhG6KwzoF4 HTTP/1.1
> Host: prod-237.westeurope.logic.azure.com
> User-Agent: curl/8.5.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 36
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/1.1 202 Accepted
< Content-Length: 0
< Date: Fri, 28 Mar 2025 12:05:28 GMT
< Cache-Control: no-cache
< Expires: -1
< Pragma: no-cache
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< x-ms-workflow-run-id: 08584584433564149666102064393CU234
< x-ms-correlation-id: d390446d-0198-455f-ba68-d17988303a72
< x-ms-client-tracking-id: 08584584433564149666102064393CU234
< x-ms-trigger-history-name: 08584584433564149666102064393CU234
< x-ms-execution-location: westeurope
< x-ms-workflow-system-id: /locations/westeurope/scaleunits/prod-237/workflows/ff29670cf4154471a77ae5863340e3f1
< x-ms-workflow-id: ff29670cf4154471a77ae5863340e3f1
< x-ms-workflow-version: 08584584446367016050
< x-ms-workflow-name: 959a5bcf-9475-4ce7-9075-2b54a7898f68
< x-ms-tracking-id: d390446d-0198-455f-ba68-d17988303a72
< x-ms-ratelimit-burst-remaining-workflow-writes: 41
< x-ms-ratelimit-remaining-workflow-download-contentsize: 30678016
< x-ms-ratelimit-remaining-workflow-upload-contentsize: 30677980
< x-ms-ratelimit-time-remaining-directapirequests: 2857065
< x-ms-request-id: westeurope:d390446d-0198-455f-ba68-d17988303a72

我做错了什么?如何向 Teams 频道发送消息?

似乎我需要遵循特定的数据格式,或者我必须使用“azure”创建一个“机器人”,或者使用“应用程序”创建一个“关联”?

我设法找到了一个相关的错误,它是:

Failed to install the Power Automate app in Microsoft Teams for team with ID 'bdd0d79d-0759-46a9-b8d4-51a51a42a59b'. Please try adding the Power Automate app to this team directly from the Microsoft Teams client. Error details: '{"error":{"code":"Forbidden","message":"Bulk Membership operation PUT failed on user '28:358f0194-6b0e-4dd3-af35-c24fe8a9ec87' with response code 207, status code :'AclCheckFailed', subStatusCode'1'","innerError":{"code":"AccessDenied","message":"Bulk Membership operation PUT failed on user '28:358f0194-6b0e-4dd3-af35-c24fe8a9ec87' with response code 207, status code :'AclCheckFailed', subStatusCode'1'","details":[],"date":"2025-03-28T13:30:26","request-id":"a51d1493-a622-4856-a976-07c48dce87b4","client-request-id":"c773988d-c459-4d2f-9417-b8ffc6eb596d"}}}'

但应用程序似乎已经安装好了。

这是一个私人频道,我将尝试下周在公共频道上重做该频道。

curl
  • 1 个回答
  • 47 Views
Martin Hope
Alex
Asked: 2025-03-10 18:41:07 +0800 CST

如何为 VirtualBox 选择正确的桥接适配器?

  • 6

我想在 Windows 11 上使用 Linux VirtualBox。在那台笔记本电脑上,我有一个 USB 加密狗,它通过有线以太网电缆连接到 IP 地址为 192.168.200.220 的设备。我需要从下拉列表中选择正确的适配器,以便能够从 VirtualBox 中运行的 Linux 连接到 IP 为 192.168.200.220 的设备。

在此处输入图片描述

我如何识别正确的适配器?

我已经尝试了所有可能的适配器,但由于网络问题,VirtualBox 无法启动。那么如何正确设置,以便我可以从在 VirtualBox 中运行的 Windows 和 Linux 访问该设备?

linux
  • 3 个回答
  • 85 Views
Martin Hope
Alex
Asked: 2025-02-10 22:46:50 +0800 CST

如何修复错误“Ncat:远程主机强制关闭现有连接”?

  • 5

在 Windows 11 上使用(管理员)Powershell 我尝试使用ncat.exe(版本 7.95)通过接口 192.168.200.5 在 UDP 端口 28500 上向该网络 192.168.200.x 中的设备发送消息。

我正在使用命令

ncat.exe -u 192.168.200.5 28600 

然后我输入我想发送的文字,比如

EXAMPLE

然后我得到错误

Ncat: An existing connection was forcibly closed by the remote host. .

似乎没有其他服务使用该端口在 Windows 上运行,并且ncat.exe应该允许通过防火墙(公共和私有)。

我还能尝试什么来修复此错误,因为似乎ncat.exe没有发送任何内容。也许有更好的工具?

networking
  • 1 个回答
  • 29 Views
Martin Hope
Alex
Asked: 2024-06-14 17:52:37 +0800 CST

如何使用 ubuntu 客户系统上的网络配置修复桥接 VirtualBox 以太网设置?

  • 5

在 Windows 10 上,我有一个运行着 ubuntu VirtualBox,并且在 Windows 主机上有两个以太网接口:

  • “以太网”
  • “无线局域网”

我现在想将主机上的这两个真实以太网设备与 ubuntu 客户机上的两个虚拟接口连接起来。为此,我在 VirtualBox 配置上定义了两个桥接适配器,用于连接到“以太网”(适配器 2)和“WLAN”(适配器 3):

在此处输入图片描述 在此处输入图片描述

在 VirtualBox 客户机中,我在文件中定义网络配置/etc/netplan/01-network-manager-all.yaml如下:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  ethernets:
    enp0s8:
      link-local: []
      dhcp4: yes
    enp0s9:
      link-local: []
      dhcp4: no
      addresses:
        - 192.168.200.100/24
      gateway4: 192.168.200.220

然后的输出ip addr show显示这个(不正确/无效的)配置:

2: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 08:00:27:64:6a:fb brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.243/24 brd 192.168.200.255 scope global dynamic enp0s8
       valid_lft 43151sec preferred_lft 43151sec
3: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:ee:d0:c4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.100/24 brd 192.168.200.255 scope global enp0s9
       valid_lft forever preferred_lft forever

问题:

  1. 如何找出 VirtualBox 设置上的哪个适配器对应于 ubuntu 主机中的哪个接口?对应Adapter2于enp0s8还是enp0s9?如何找出?
  2. 如何“修复”连接到 Windows“WLAN”适配器的接口设置,以便客户机 ubuntu 确实连接到 Windows“WLAN”适配器和外部互联网?因为我无法 ping 8.8.8.8,即 ubuntu 客户机系统似乎没有外部互联网连接。同样奇怪的是,ubuntu 客户机中的两个接口位于同一子网中192.168.200。这看起来不对劲,可能是 ubuntu 客户机无法通过 Windows“WLAN”适配器访问外部互联网的问题。如何解决这个问题?
  3. 我可能有第三个以太网适配器,用于连接有线互联网
  4. 我不是网络方面的专家。例如,我不太清楚在网络设置中为适配器定义的“网关”是什么意思。
  5. 如果我忘记了什么,或者有后续问题,我深表歉意。如前所述,我不是网络专家。理想情况下,答案将包含一些关于其工作原理的一般解释。
networking
  • 2 个回答
  • 81 Views
Martin Hope
Alex
Asked: 2023-02-01 22:34:13 +0800 CST

为什么 Windows 10 有一个我可以 ping 通的 VirtualBox Host-Only 以太网地址,尽管我没有指定任何 Host-only 适配器?

  • 9

我在 Windows 10 机器上使用 Ubuntu 20.04 VM,使用两个网络适配器,NAT 和桥接。但是,在 Windows 10 机器的“网络连接”中,我看到“Ethernet4”,它是一个“VirtualBox Host-Only Ethernet”适配器。我也可以ping通这个地址。

在此处输入图像描述

但是为什么即使我没有将 VM 的适配器设置为 Host-only,这个适配器仍然可用?或许一直都在,只是这个IP地址后面没有“机器”?

windows
  • 1 个回答
  • 618 Views
Martin Hope
Alex
Asked: 2023-01-05 04:15:56 +0800 CST

如何在 MacOS 上清空外部磁盘上的垃圾?

  • 5

我正在使用 MacOS Ventura 13.1,我想做一些非常复杂和困难的事情:清空外部驱动器上的垃圾!

  1. 正常方法:打开废纸篓,点击清空:

    The operation can't be completed because the item XXX is in use
    
  2. 打开废纸篓,点击“立即删除”:

    The operation can't be completed because some items had to be skipped. For each item ...
    
  3. 尝试命令行

    sudo rm -rf /Volume/MyDisk/.Trashes
    rm: /Volumes/MyDisk/.Trashes/: Operation not permitted
    
  4. 试图停止所有这些无用且超级烦人的聚光灯进程并尝试上述任何方法:没有成功

    sudo killall mds
    

好的专家,如何清空外部磁盘上的垃圾箱?买一台 Linux Laptop 来做吗?

mac
  • 1 个回答
  • 14 Views
Martin Hope
Alex
Asked: 2022-06-21 23:10:04 +0800 CST

如何在跟踪路由中查看无响应的服务器?

  • 5

当您执行 atraceroute并且路由器在超时内没有响应时,traceroute 会打印一个星号,例如

traceroute my.domain.com
...
13  te9-2.dsr01.dllstx3.networklayer.com (70.87.253.14)  40.037 ms  24.063 ms
te2-4.dsr02.dllstx3.networklayer.com (70.87.255.46)  28.605 ms
14  * * *
15  * * *
16  zyzzyva.site5.com (174.122.37.66)  20.414 ms  20.603 ms  20.467 ms

但是第 14 步和第 15 步中的服务器名称或它们的 IP 地址是什么?如何打印它们?

networking traceroute
  • 1 个回答
  • 26 Views
Martin Hope
Alex
Asked: 2022-06-21 22:11:14 +0800 CST

如何在 Mac 上跟踪路由 VPN 后面的站点?

  • 5

我正在尝试traceroute在 MacOS 12.4 上使用,但似乎没有得到任何有用的输出。我正在尝试将跟踪路由获取到 VPN 后面的资源。

输出是

$ traceroute  -d -I my.domain.com
traceroute to my.domain.com (1.2.3.4), 64 hops max, 72 byte packets
 1  some.domain (10.2.3.4)  55.562 ms  43.052 ms  65.707 ms
 2  some.domain2 (11.2.3.4)  55.562 ms  43.052 ms  65.707 ms
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  my.domain (1.2.3.4)  55.562 ms  43.052 ms  65.707 ms

如何使用该命令查找路由中的瓶颈?我尝试了一些不同的选项,但我总是在一些路由器之间得到 5 行星号 ( * * *)。

如何理解这一点?如果慢速路由器被盯着看,如何找到连接中的瓶颈?它们是什么域?为什么不打印?

networking vpn
  • 1 个回答
  • 58 Views
Martin Hope
Alex
Asked: 2020-06-09 22:02:05 +0800 CST

如何更改Firefox文本框中的拼写语言?

  • 6

我在 macOS Mojave 上使用 Firefox 77.0.1,每当我在文本框中输入一些文本时,我想检查不同语言的拼写。

在 Firefox 中,我安装了英语、德语和法语:

在此处输入图像描述

但是当我使用文本框时,我看不到除英语之外的任何其他语言:

在此处输入图像描述

我需要做什么/安装/更改/配置,以便我还可以在 Firefox 文本框中选择“德语”或“法语”作为拼写语言?

firefox language
  • 1 个回答
  • 344 Views
Martin Hope
Alex
Asked: 2020-02-24 04:50:09 +0800 CST

使用哪些选项来转换具有给定视频/音频/字幕流的视频?

  • 5

我想用来ffmpeg将视频文件转换为包含一个特定音频文件和一个特定字幕流的输出文件。

我要选择的流如下:

Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1036 [SAR 1:1 DAR 480:259], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0:4(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:6(eng): Subtitle: ass

所以我尝试了命令

ffmpeg -i input.mkv -c:v libx264  -c:a mp3lame -map 0:v:0 -map 0:a:4 -map 0:s:6 output.mp4

但我有一个错误

Automatic encoder selection failed for output stream #0:2. Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:2

我不明白该错误消息,因为我没有选择“流 0:2”。也许我误解了地图选项的含义?使用什么选项来解决这个问题?

video audio
  • 1 个回答
  • 261 Views
Martin Hope
Alex
Asked: 2019-12-05 01:00:11 +0800 CST

如何在 chrome 选项卡中直接打开某些类型的文件?

  • 10

我在 Ubuntu 16.04.6 上使用 google chrome 77.0.3865.90,我想让 chrome 直接在浏览器选项卡中打开某些类型。

例如,当我使用.log诸如.out_L4PC.logsome/web/adress/out_L4PC.out

我有不同的文件,也只包含文本,但它们以.err(example out_L4PC.err) 结尾。我希望它们也可以直接在浏览器选项卡中打开。

但到目前为止,当我使用这样的.err文件时,它们会被下载并使用不同的应用程序打开。这不是我想要的。我不希望这些类型的文件用不同的应用程序打开,而是直接在浏览器中打开,就像.log文件一样。

怎么做?

google-chrome browser
  • 1 个回答
  • 1482 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve