This message was deleted.
# general
b
This message was deleted.
❤️ 1
1
f
Thank you Duncan for the comment and the tips
actually i am using the same code snippet provided in the documentation
I am using an ubuntu image
b
What happens if you change
$(...)
to
${...}
(in all three cases)
f
i tested it form the pullrequestid
m
@few-father-18060 we’re heads down with the release today, but if you give me a sec I’ll get back to you. This seems like perhaps the pipeline isn’t being triggered by a Pull Request. From the docs: “The ID of the pull request that caused this build. For example: 17. (This variable is initialized only if the build ran because of a Git PR affected by a branch policy).” see here: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
f
it is triggering though a PR... no worries Hugo, let me know when you have time to check it. Thank you for the support
m
hey @few-father-18060 could you post your full pipeline you’re trying to run here (with any sensitive data removed)
and just to check, you’ve followed the guide here: https://github.com/infracost/infracost-azure-devops#azure-repos-quick-start
See point 2 as the potential issue here
Have you set the required permissions on the Build Service?
f
you mean this?
m
“Enable Azure Pipelines to post pull request comments”
f
yes
m
I’m wondering if it’s because the “Read” is marked as inherited, what happens if you set this explicitly as “Read”
f
tried to change it but still didnt work
c
Have we output the values of
$(Build.Repository.Uri)
and
$(System.PullRequest.PullRequestId)
to make sure they look reasonable?
f
hello @crooked-daybreak-55253, i deleted all the piplines and settings and re did everything. below is the new error i am getting:
the output of the values youre requested seems valid
$(Build.Repository.Uri)
$(System.PullRequest.PullRequestId)
c
Ok hmmm. Let me look at our code to double check that we’re not mangling the url somehow. This is the API call that is failing: https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-threads/list?view=azure-devops-rest-6.0
f
thanks
i tried creating a new comment instead of update
Copy code
--behavior=new
but still the same
👍 1
c
The URL looks like it is ok so I’m guessing there must be some issue with the token. Can you try making a direct request to azure using curl like this:
Copy code
curl -v -X GET -H 'authorization: Bearer ${TOKEN}' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
f
Copy code
2022-07-11T12:11:07.2282415Z ##[section]Starting: Bash
2022-07-11T12:11:07.2288976Z ==============================================================================
2022-07-11T12:11:07.2289240Z Task         : Bash
2022-07-11T12:11:07.2289613Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T12:11:07.2289842Z Version      : 3.201.1
2022-07-11T12:11:07.2290023Z Author       : Microsoft Corporation
2022-07-11T12:11:07.2290313Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T12:11:07.2290648Z ==============================================================================
2022-07-11T12:11:07.3465615Z Generating script.
2022-07-11T12:11:07.3478594Z Script contents:
2022-07-11T12:11:07.3479509Z curl -v -X GET -H 'authorization: Bearer ${TOKEN}' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T12:11:07.3487607Z ========================== Starting Command Output ===========================
2022-07-11T12:11:07.3498692Z [command]/usr/bin/bash /home/vsts/work/_temp/0989bc47-83eb-4ee2-954d-dd766d549f75.sh
2022-07-11T12:11:07.3654514Z Note: Unnecessary use of -X or --request, GET is already inferred.
2022-07-11T12:11:07.3656885Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T12:11:07.3657300Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T12:11:07.3657475Z 
2022-07-11T12:11:07.3662331Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T12:11:07.3662823Z * TCP_NODELAY set
2022-07-11T12:11:07.3681571Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#0)
2022-07-11T12:11:07.3683806Z * ALPN, offering h2
2022-07-11T12:11:07.3684320Z * ALPN, offering http/1.1
2022-07-11T12:11:07.3735578Z * successfully set certificate verify locations:
2022-07-11T12:11:07.3736491Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T12:11:07.3737027Z   CApath: /etc/ssl/certs
2022-07-11T12:11:07.3738743Z } [5 bytes data]
2022-07-11T12:11:07.3739194Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T12:11:07.3739907Z } [512 bytes data]
2022-07-11T12:11:07.3765985Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T12:11:07.3766507Z { [94 bytes data]
2022-07-11T12:11:07.3766903Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T12:11:07.3767317Z { [3583 bytes data]
2022-07-11T12:11:07.3769295Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T12:11:07.3769746Z { [365 bytes data]
2022-07-11T12:11:07.3770827Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T12:11:07.3771251Z { [4 bytes data]
2022-07-11T12:11:07.3793208Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T12:11:07.3793877Z } [102 bytes data]
2022-07-11T12:11:07.3794218Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T12:11:07.3794536Z } [1 bytes data]
2022-07-11T12:11:07.3796560Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T12:11:07.3797037Z } [16 bytes data]
2022-07-11T12:11:07.3829206Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T12:11:07.3829684Z { [16 bytes data]
2022-07-11T12:11:07.3830569Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T12:11:07.3830929Z * ALPN, server accepted to use h2
2022-07-11T12:11:07.3831185Z * Server certificate:
2022-07-11T12:11:07.3831448Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T12:11:07.3831742Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T12:11:07.3832060Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T12:11:07.3832582Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T12:11:07.3833160Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T12:11:07.3833505Z *  SSL certificate verify ok.
2022-07-11T12:11:07.3833934Z * Using HTTP2, server supports multi-use
2022-07-11T12:11:07.3834283Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T12:11:07.3834989Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T12:11:07.3835306Z } [5 bytes data]
2022-07-11T12:11:07.3835589Z * Using Stream ID: 1 (easy handle 0x5607a7c608c0)
2022-07-11T12:11:07.3835858Z } [5 bytes data]
2022-07-11T12:11:07.3836585Z > GET /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T12:11:07.3837061Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T12:11:07.3837437Z > user-agent: curl/7.68.0
2022-07-11T12:11:07.3837674Z > accept: */*
2022-07-11T12:11:07.3837910Z > authorization: Bearer ${TOKEN}
2022-07-11T12:11:07.3838142Z > 
2022-07-11T12:11:07.3838439Z { [5 bytes data]
2022-07-11T12:11:07.3838728Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T12:11:07.3839029Z } [5 bytes data]
2022-07-11T12:11:07.3925268Z < HTTP/2 404 
2022-07-11T12:11:07.3926822Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T12:11:07.3927866Z < x-content-type-options: nosniff
2022-07-11T12:11:07.3928411Z < x-cache: CONFIG_NOCACHE
2022-07-11T12:11:07.3929161Z < x-msedge-ref: Ref A: A32B0483A8B74FD898D67DFF92567DBC Ref B: AMS04EDGE3108 Ref C: 2022-07-11T12:11:07Z
2022-07-11T12:11:07.3929730Z < date: Mon, 11 Jul 2022 12:11:06 GMT
2022-07-11T12:11:07.3930232Z < content-length: 0
2022-07-11T12:11:07.3930568Z < 
2022-07-11T12:11:07.3930866Z { [0 bytes data]
2022-07-11T12:11:07.3931113Z 
2022-07-11T12:11:07.3931713Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-07-11T12:11:07.3932198Z * Connection #0 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T12:11:07.4008670Z ##[section]Finishing: Bash
c
Sorry I meant to replace $TOKEN with the infracost access token, so:
Copy code
curl -v -X GET -H 'authorization: Bearer ${System.AccessToken}' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
And if that still gives an error, then create a personal access token and substitute that for
${TOKEN}
instead. Hopefully we’ll get to a baseline where the API call succeeds and we can work up from there.
f
i added ${System.AccessToken} and got this:
Copy code
2022-07-11T12:29:16.8888357Z ##[section]Starting: Bash
2022-07-11T12:29:16.8894194Z ==============================================================================
2022-07-11T12:29:16.8894442Z Task         : Bash
2022-07-11T12:29:16.8894630Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T12:29:16.8894818Z Version      : 3.201.1
2022-07-11T12:29:16.8894979Z Author       : Microsoft Corporation
2022-07-11T12:29:16.8895479Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T12:29:16.8895773Z ==============================================================================
2022-07-11T12:29:16.9997788Z Generating script.
2022-07-11T12:29:17.0010454Z Script contents:
2022-07-11T12:29:17.0011412Z curl -v -X GET -H 'authorization: Bearer ${System.AccessToken}' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T12:29:17.0019817Z ========================== Starting Command Output ===========================
2022-07-11T12:29:17.0031743Z [command]/usr/bin/bash /home/vsts/work/_temp/1210b2e3-71fe-4d4b-84c1-b23740378ecf.sh
2022-07-11T12:29:17.0163558Z Note: Unnecessary use of -X or --request, GET is already inferred.
2022-07-11T12:29:17.0170150Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T12:29:17.0170614Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T12:29:17.0170791Z 
2022-07-11T12:29:17.0172053Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T12:29:17.0172509Z * TCP_NODELAY set
2022-07-11T12:29:17.0176855Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#0)
2022-07-11T12:29:17.0178972Z * ALPN, offering h2
2022-07-11T12:29:17.0179393Z * ALPN, offering http/1.1
2022-07-11T12:29:17.0228553Z * successfully set certificate verify locations:
2022-07-11T12:29:17.0229307Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T12:29:17.0229626Z   CApath: /etc/ssl/certs
2022-07-11T12:29:17.0229853Z } [5 bytes data]
2022-07-11T12:29:17.0230092Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T12:29:17.0230351Z } [512 bytes data]
2022-07-11T12:29:17.0247425Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T12:29:17.0247730Z { [94 bytes data]
2022-07-11T12:29:17.0248023Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T12:29:17.0248269Z { [3583 bytes data]
2022-07-11T12:29:17.0253669Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T12:29:17.0254201Z { [365 bytes data]
2022-07-11T12:29:17.0254646Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T12:29:17.0255075Z { [4 bytes data]
2022-07-11T12:29:17.0274538Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T12:29:17.0275093Z } [102 bytes data]
2022-07-11T12:29:17.0275642Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T12:29:17.0276076Z } [1 bytes data]
2022-07-11T12:29:17.0278296Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T12:29:17.0278729Z } [16 bytes data]
2022-07-11T12:29:17.0294464Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T12:29:17.0294994Z { [16 bytes data]
2022-07-11T12:29:17.0300809Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T12:29:17.0301253Z * ALPN, server accepted to use h2
2022-07-11T12:29:17.0301510Z * Server certificate:
2022-07-11T12:29:17.0301779Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T12:29:17.0302078Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T12:29:17.0302384Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T12:29:17.0302957Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T12:29:17.0303354Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T12:29:17.0303693Z *  SSL certificate verify ok.
2022-07-11T12:29:17.0304112Z * Using HTTP2, server supports multi-use
2022-07-11T12:29:17.0304425Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T12:29:17.0305148Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T12:29:17.0305464Z } [5 bytes data]
2022-07-11T12:29:17.0305748Z * Using Stream ID: 1 (easy handle 0x557b8ab738c0)
2022-07-11T12:29:17.0306018Z } [5 bytes data]
2022-07-11T12:29:17.0306733Z > GET /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T12:29:17.0307234Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T12:29:17.0307599Z > user-agent: curl/7.68.0
2022-07-11T12:29:17.0307980Z > accept: */*
2022-07-11T12:29:17.0308239Z > authorization: Bearer ${System.AccessToken}
2022-07-11T12:29:17.0308480Z > 
2022-07-11T12:29:17.0308688Z { [5 bytes data]
2022-07-11T12:29:17.0308974Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T12:29:17.0309275Z } [5 bytes data]
2022-07-11T12:29:17.0515058Z < HTTP/2 404 
2022-07-11T12:29:17.0517119Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T12:29:17.0518368Z < x-content-type-options: nosniff
2022-07-11T12:29:17.0519154Z < x-cache: CONFIG_NOCACHE
2022-07-11T12:29:17.0519936Z < x-msedge-ref: Ref A: DED0FDB3F3E947ED84B1D0197BE6B0D6 Ref B: DB3EDGE2621 Ref C: 2022-07-11T12:29:17Z
2022-07-11T12:29:17.0520522Z < date: Mon, 11 Jul 2022 12:29:16 GMT
2022-07-11T12:29:17.0521043Z < content-length: 0
2022-07-11T12:29:17.0521378Z < 
2022-07-11T12:29:17.0526434Z { [0 bytes data]
2022-07-11T12:29:17.0526725Z 
2022-07-11T12:29:17.0527578Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-07-11T12:29:17.0528111Z * Connection #0 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T12:29:17.0614377Z ##[section]Finishing: Bash
i created a PAT also and tried it... still the same.. i will send you the result and hide the pAT
Copy code
2022-07-11T12:41:01.4671379Z ##[section]Starting: Bash
2022-07-11T12:41:01.4676222Z ==============================================================================
2022-07-11T12:41:01.4676471Z Task         : Bash
2022-07-11T12:41:01.4676678Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T12:41:01.4676911Z Version      : 3.201.1
2022-07-11T12:41:01.4677085Z Author       : Microsoft Corporation
2022-07-11T12:41:01.4677357Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T12:41:01.4677706Z ==============================================================================
2022-07-11T12:41:01.5890743Z Generating script.
2022-07-11T12:41:01.5904536Z Script contents:
2022-07-11T12:41:01.5907099Z curl -v -X GET -H 'authorization: Bearer thisismypatvalue' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T12:41:01.5920501Z ========================== Starting Command Output ===========================
2022-07-11T12:41:01.5937351Z [command]/usr/bin/bash /home/vsts/work/_temp/92fd6348-b6dd-405f-b6ae-797dc0cab4a4.sh
2022-07-11T12:41:01.6074616Z Note: Unnecessary use of -X or --request, GET is already inferred.
2022-07-11T12:41:01.6077548Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T12:41:01.6078453Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T12:41:01.6078672Z 
2022-07-11T12:41:01.6079504Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T12:41:01.6079951Z * TCP_NODELAY set
2022-07-11T12:41:01.6092382Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#0)
2022-07-11T12:41:01.6094521Z * ALPN, offering h2
2022-07-11T12:41:01.6095008Z * ALPN, offering http/1.1
2022-07-11T12:41:01.6149021Z * successfully set certificate verify locations:
2022-07-11T12:41:01.6149787Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T12:41:01.6150117Z   CApath: /etc/ssl/certs
2022-07-11T12:41:01.6150352Z } [5 bytes data]
2022-07-11T12:41:01.6150628Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T12:41:01.6150923Z } [512 bytes data]
2022-07-11T12:41:01.6167058Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T12:41:01.6167389Z { [94 bytes data]
2022-07-11T12:41:01.6167690Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T12:41:01.6167973Z { [3583 bytes data]
2022-07-11T12:41:01.6182153Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T12:41:01.6182516Z { [365 bytes data]
2022-07-11T12:41:01.6182829Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T12:41:01.6183145Z { [4 bytes data]
2022-07-11T12:41:01.6209033Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T12:41:01.6209656Z } [102 bytes data]
2022-07-11T12:41:01.6210068Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T12:41:01.6210378Z } [1 bytes data]
2022-07-11T12:41:01.6210664Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T12:41:01.6210947Z } [16 bytes data]
2022-07-11T12:41:01.6231628Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T12:41:01.6232290Z { [16 bytes data]
2022-07-11T12:41:01.6233108Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T12:41:01.6233460Z * ALPN, server accepted to use h2
2022-07-11T12:41:01.6233724Z * Server certificate:
2022-07-11T12:41:01.6234051Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T12:41:01.6234350Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T12:41:01.6234677Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T12:41:01.6235496Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T12:41:01.6235901Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T12:41:01.6236251Z *  SSL certificate verify ok.
2022-07-11T12:41:01.6236672Z * Using HTTP2, server supports multi-use
2022-07-11T12:41:01.6237146Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T12:41:01.6237522Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T12:41:01.6237864Z } [5 bytes data]
2022-07-11T12:41:01.6238141Z * Using Stream ID: 1 (easy handle 0x55800e4f08c0)
2022-07-11T12:41:01.6238417Z } [5 bytes data]
2022-07-11T12:41:01.6239160Z > GET /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T12:41:01.6239648Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T12:41:01.6240033Z > user-agent: curl/7.68.0
2022-07-11T12:41:01.6240269Z > accept: */*
2022-07-11T12:41:01.6240613Z > authorization: Bearer 6ukio3kzoxlsy3vnwuvx3rzzhx74hv3leiw5bkzhhundao2wuc7q
2022-07-11T12:41:01.6240921Z > 
2022-07-11T12:41:01.6241113Z { [5 bytes data]
2022-07-11T12:41:01.6241417Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T12:41:01.6241708Z } [5 bytes data]
2022-07-11T12:41:01.7575024Z < HTTP/2 404 
2022-07-11T12:41:01.7575590Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T12:41:01.7576767Z < x-content-type-options: nosniff
2022-07-11T12:41:01.7577239Z < x-cache: CONFIG_NOCACHE
2022-07-11T12:41:01.7577965Z < x-msedge-ref: Ref A: A7294958EE1F48C7AFACC3C8DF8E0F80 Ref B: DB3EDGE3107 Ref C: 2022-07-11T12:41:01Z
2022-07-11T12:41:01.7578490Z < date: Mon, 11 Jul 2022 12:41:01 GMT
2022-07-11T12:41:01.7578942Z < content-length: 0
2022-07-11T12:41:01.7579196Z < 
2022-07-11T12:41:01.7579418Z { [0 bytes data]
2022-07-11T12:41:01.7579533Z 
2022-07-11T12:41:01.7580078Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-07-11T12:41:01.7580517Z * Connection #0 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T12:41:01.7651371Z ##[section]Finishing: Bash
m
The PAT will need basic auth, so:
Copy code
curl -v -u youruser:yourpat <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
1
f
Copy code
2022-07-11T12:50:37.0705740Z ##[section]Starting: Bash
2022-07-11T12:50:37.0710074Z ==============================================================================
2022-07-11T12:50:37.0710299Z Task         : Bash
2022-07-11T12:50:37.0710491Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T12:50:37.0710686Z Version      : 3.201.1
2022-07-11T12:50:37.0710838Z Author       : Microsoft Corporation
2022-07-11T12:50:37.0711077Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T12:50:37.0711363Z ==============================================================================
2022-07-11T12:50:37.1940647Z Generating script.
2022-07-11T12:50:37.1952141Z Script contents:
2022-07-11T12:50:37.1953214Z curl -v -u :mypat <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T12:50:37.1962719Z ========================== Starting Command Output ===========================
2022-07-11T12:50:37.1974011Z [command]/usr/bin/bash /home/vsts/work/_temp/7e8075fa-697a-4369-9f91-5fd80e0e53c4.sh
2022-07-11T12:50:37.2760584Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T12:50:37.2761551Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T12:50:37.2761756Z 
2022-07-11T12:50:37.2762718Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T12:50:37.2763136Z * TCP_NODELAY set
2022-07-11T12:50:37.2778227Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#0)
2022-07-11T12:50:37.2780931Z * ALPN, offering h2
2022-07-11T12:50:37.2781457Z * ALPN, offering http/1.1
2022-07-11T12:50:37.2832952Z * successfully set certificate verify locations:
2022-07-11T12:50:37.2833745Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T12:50:37.2834164Z   CApath: /etc/ssl/certs
2022-07-11T12:50:37.2835634Z } [5 bytes data]
2022-07-11T12:50:37.2836238Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T12:50:37.2836601Z } [512 bytes data]
2022-07-11T12:50:37.2867444Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T12:50:37.2867718Z { [94 bytes data]
2022-07-11T12:50:37.2867979Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T12:50:37.2868222Z { [3583 bytes data]
2022-07-11T12:50:37.2873598Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T12:50:37.2874047Z { [365 bytes data]
2022-07-11T12:50:37.2875110Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T12:50:37.2875513Z { [4 bytes data]
2022-07-11T12:50:37.2901299Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T12:50:37.2901590Z } [102 bytes data]
2022-07-11T12:50:37.2901868Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T12:50:37.2902117Z } [1 bytes data]
2022-07-11T12:50:37.2902365Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T12:50:37.2902623Z } [16 bytes data]
2022-07-11T12:50:37.2927612Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T12:50:37.2928229Z { [16 bytes data]
2022-07-11T12:50:37.2928944Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T12:50:37.2929292Z * ALPN, server accepted to use h2
2022-07-11T12:50:37.2929524Z * Server certificate:
2022-07-11T12:50:37.2929761Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T12:50:37.2930027Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T12:50:37.2930317Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T12:50:37.2930793Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T12:50:37.2931140Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T12:50:37.2931433Z *  SSL certificate verify ok.
2022-07-11T12:50:37.2931815Z * Using HTTP2, server supports multi-use
2022-07-11T12:50:37.2932097Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T12:50:37.2932419Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T12:50:37.2932872Z } [5 bytes data]
2022-07-11T12:50:37.2933243Z * Server auth using Basic with user ''
2022-07-11T12:50:37.2933531Z * Using Stream ID: 1 (easy handle 0x563639d528c0)
2022-07-11T12:50:37.2933784Z } [5 bytes data]
2022-07-11T12:50:37.2934406Z > GET /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%2520Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T12:50:37.2934829Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T12:50:37.2935163Z > authorization: Basic OjZ1a2lvM2t6b3hsc3kzdm53dXZ4M3J6emh4NzRodjNsZWl3NWJremhodW5kYW8yd3VjN3E=
2022-07-11T12:50:37.2935633Z > user-agent: curl/7.68.0
2022-07-11T12:50:37.2935858Z > accept: */*
2022-07-11T12:50:37.2936028Z > 
2022-07-11T12:50:37.2936214Z { [5 bytes data]
2022-07-11T12:50:37.2936468Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T12:50:37.2936738Z } [5 bytes data]
2022-07-11T12:50:37.3074429Z < HTTP/2 404 
2022-07-11T12:50:37.3075207Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T12:50:37.3076099Z < x-content-type-options: nosniff
2022-07-11T12:50:37.3076683Z < x-cache: CONFIG_NOCACHE
2022-07-11T12:50:37.3077468Z < x-msedge-ref: Ref A: B06342C1D8884F87A49772B91E218BD1 Ref B: PAR02EDGE1018 Ref C: 2022-07-11T12:50:37Z
2022-07-11T12:50:37.3078657Z < date: Mon, 11 Jul 2022 12:50:37 GMT
2022-07-11T12:50:37.3079237Z < content-length: 0
2022-07-11T12:50:37.3079562Z < 
2022-07-11T12:50:37.3079870Z { [0 bytes data]
2022-07-11T12:50:37.3080073Z 
2022-07-11T12:50:37.3080694Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-07-11T12:50:37.3081167Z * Connection #0 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T12:50:37.3183154Z ##[section]Finishing: Bash
m
hmm based on the output given it looks like neither your PAT or Bearer token have access to this repository. Can I make sure that the information is correct that’s in this URL is correct for this Pull Request: 1.
SG-GDI-CTO-PublicCloud
is your org 2.
CloudSolutions 20Playground
is the name of the project 3.
CloudSolutions 20Playground
is also the name of the repo 4.
190
is the pull request number
f
the above is correct, the repo is called CloudSolutions Playgroud, but since there is space it adds the %20 in the URL
Copy code
2022-07-11T13:00:16.2146597Z ##[section]Starting: Bash
2022-07-11T13:00:16.2152856Z ==============================================================================
2022-07-11T13:00:16.2153126Z Task         : Bash
2022-07-11T13:00:16.2153355Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T13:00:16.2153579Z Version      : 3.201.1
2022-07-11T13:00:16.2153782Z Author       : Microsoft Corporation
2022-07-11T13:00:16.2154074Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T13:00:16.2154432Z ==============================================================================
2022-07-11T13:00:16.3396410Z Generating script.
2022-07-11T13:00:16.3410692Z Script contents:
2022-07-11T13:00:16.3411699Z curl -v -u :6ukio3kzoxlsy3vnwuvx3rzzhx74hv3leiw5bkzhhundao2wuc7q <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%20Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T13:00:16.3424795Z ========================== Starting Command Output ===========================
2022-07-11T13:00:16.3441319Z [command]/usr/bin/bash /home/vsts/work/_temp/4c5bdf10-e58d-46ce-8a0d-7e707e72835f.sh
2022-07-11T13:00:16.3578474Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T13:00:16.3579475Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T13:00:16.3579740Z 
2022-07-11T13:00:16.3582419Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T13:00:16.3582876Z * TCP_NODELAY set
2022-07-11T13:00:16.3606171Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#0)
2022-07-11T13:00:16.3608698Z * ALPN, offering h2
2022-07-11T13:00:16.3609311Z * ALPN, offering http/1.1
2022-07-11T13:00:16.3664098Z * successfully set certificate verify locations:
2022-07-11T13:00:16.3664954Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T13:00:16.3665277Z   CApath: /etc/ssl/certs
2022-07-11T13:00:16.3668469Z } [5 bytes data]
2022-07-11T13:00:16.3668836Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T13:00:16.3669117Z } [512 bytes data]
2022-07-11T13:00:16.3699418Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T13:00:16.3700004Z { [94 bytes data]
2022-07-11T13:00:16.3700510Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T13:00:16.3700979Z { [3583 bytes data]
2022-07-11T13:00:16.3703538Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T13:00:16.3704072Z { [365 bytes data]
2022-07-11T13:00:16.3705230Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T13:00:16.3705734Z { [4 bytes data]
2022-07-11T13:00:16.3728104Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T13:00:16.3728440Z } [102 bytes data]
2022-07-11T13:00:16.3728757Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T13:00:16.3729061Z } [1 bytes data]
2022-07-11T13:00:16.3729330Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T13:00:16.3729630Z } [16 bytes data]
2022-07-11T13:00:16.3772029Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T13:00:16.3772577Z { [16 bytes data]
2022-07-11T13:00:16.3773587Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T13:00:16.3773963Z * ALPN, server accepted to use h2
2022-07-11T13:00:16.3774257Z * Server certificate:
2022-07-11T13:00:16.3774530Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T13:00:16.3775124Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T13:00:16.3775452Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T13:00:16.3776144Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T13:00:16.3776552Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T13:00:16.3776900Z *  SSL certificate verify ok.
2022-07-11T13:00:16.3777327Z * Using HTTP2, server supports multi-use
2022-07-11T13:00:16.3777658Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T13:00:16.3778037Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T13:00:16.3778529Z } [5 bytes data]
2022-07-11T13:00:16.3778942Z * Server auth using Basic with user ''
2022-07-11T13:00:16.3779262Z * Using Stream ID: 1 (easy handle 0x55d9e783f8c0)
2022-07-11T13:00:16.3779553Z } [5 bytes data]
2022-07-11T13:00:16.3780258Z > GET /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%20Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T13:00:16.3780762Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T13:00:16.3781144Z > authorization: Basic OjZ1a2lvM2t6b3hsc3kzdm53dXZ4M3J6emh4NzRodjNsZWl3NWJremhodW5kYW8yd3VjN3E=
2022-07-11T13:00:16.3781650Z > user-agent: curl/7.68.0
2022-07-11T13:00:16.3781900Z > accept: */*
2022-07-11T13:00:16.3782088Z > 
2022-07-11T13:00:16.3782292Z { [5 bytes data]
2022-07-11T13:00:16.3782587Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T13:00:16.3782881Z } [5 bytes data]
2022-07-11T13:00:16.6068222Z < HTTP/2 200 
2022-07-11T13:00:16.6069243Z < cache-control: no-cache, no-store, must-revalidate
2022-07-11T13:00:16.6069774Z < pragma: no-cache
2022-07-11T13:00:16.6070346Z < content-type: application/json; charset=utf-8; api-version=6.0
2022-07-11T13:00:16.6070827Z < expires: -1
2022-07-11T13:00:16.6071290Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T13:00:16.6073324Z < set-cookie: VstsSession=%7B%22PersistentSessionId%22%3A%229963b447-5b04-42cc-9eb9-b44f7358b23f%22%2C%22PendingAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22CurrentAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22SignInState%22%3A%7B%7D%7D;SameSite=None; domain=.<http://dev.azure.com|dev.azure.com>; expires=Tue, 11-Jul-2023 13:00:16 GMT; path=/; secure; HttpOnly
2022-07-11T13:00:16.6074866Z < x-tfs-processid: c9f8fe0f-3890-4983-b65d-2c2e4916f98a
2022-07-11T13:00:16.6075495Z < strict-transport-security: max-age=31536000; includeSubDomains
2022-07-11T13:00:16.6076130Z < activityid: 7336c990-7986-4bee-900b-2c65d3c6099a
2022-07-11T13:00:16.6076721Z < x-tfs-session: 7336c990-7986-4bee-900b-2c65d3c6099a
2022-07-11T13:00:16.6077332Z < x-vss-e2eid: 7336c990-7986-4bee-900b-2c65d3c6099a
2022-07-11T13:00:16.6077953Z < x-vss-senderdeploymentid: c518140b-a1e2-d11a-3c91-1a181d4b1e29
2022-07-11T13:00:16.6078751Z < x-vss-userdata: 7c095ae7-6475-65a6-9fa3-a15fc342046f:AZYELA4684363@saintgobain.onmicrosoft.com
2022-07-11T13:00:16.6079383Z < x-frame-options: SAMEORIGIN
2022-07-11T13:00:16.6079997Z < request-context: appId=cid-v1:5ff2fb41-7b44-4199-811f-c76fe5186821
2022-07-11T13:00:16.6080605Z < access-control-expose-headers: Request-Context
2022-07-11T13:00:16.6081112Z < x-content-type-options: nosniff
2022-07-11T13:00:16.6081583Z < x-cache: CONFIG_NOCACHE
2022-07-11T13:00:16.6082285Z < x-msedge-ref: Ref A: 3EFA022DC1E44062932A8F1774CFC9E6 Ref B: AMS04EDGE3609 Ref C: 2022-07-11T13:00:16Z
2022-07-11T13:00:16.6082808Z < date: Mon, 11 Jul 2022 13:00:16 GMT
2022-07-11T13:00:16.6083088Z < 
2022-07-11T13:00:16.6083324Z { [2675 bytes data]
2022-07-11T13:00:16.6083462Z 
2022-07-11T13:00:16.6084027Z 100  6488    0  6488    0     0  26056      0 --:--:-- --:--:-- --:--:-- 26056
2022-07-11T13:00:16.6084486Z * Connection #0 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T13:00:16.6150931Z ##[section]Finishing: Bash
there was something wrong in the url that i fixed and this was the result
is this helpful?
m
ok can you try the correct URL with the pipeline token now, and not your PAT?
f
sure
using ${System.AccessToken} no?
m
yup
f
Copy code
2022-07-11T13:13:29.9759079Z ##[section]Starting: Bash
2022-07-11T13:13:29.9763367Z ==============================================================================
2022-07-11T13:13:29.9763585Z Task         : Bash
2022-07-11T13:13:29.9763775Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T13:13:29.9763964Z Version      : 3.201.1
2022-07-11T13:13:29.9764115Z Author       : Microsoft Corporation
2022-07-11T13:13:29.9764356Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T13:13:29.9764638Z ==============================================================================
2022-07-11T13:13:30.0969452Z Generating script.
2022-07-11T13:13:30.0982513Z Script contents:
2022-07-11T13:13:30.0983341Z curl -v -X GET -H 'authorization: Bearer ${System.AccessToken}' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%20Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T13:13:30.0991873Z ========================== Starting Command Output ===========================
2022-07-11T13:13:30.1003393Z [command]/usr/bin/bash /home/vsts/work/_temp/09bd123d-b391-4dd3-9eef-8a678b65286b.sh
2022-07-11T13:13:30.1126778Z Note: Unnecessary use of -X or --request, GET is already inferred.
2022-07-11T13:13:30.1127686Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T13:13:30.1128526Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T13:13:30.1128725Z 
2022-07-11T13:13:30.1130233Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T13:13:30.1130609Z * TCP_NODELAY set
2022-07-11T13:13:30.1146924Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#0)
2022-07-11T13:13:30.1148843Z * ALPN, offering h2
2022-07-11T13:13:30.1149245Z * ALPN, offering http/1.1
2022-07-11T13:13:30.1199925Z * successfully set certificate verify locations:
2022-07-11T13:13:30.1200914Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T13:13:30.1201418Z   CApath: /etc/ssl/certs
2022-07-11T13:13:30.1204991Z } [5 bytes data]
2022-07-11T13:13:30.1205340Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T13:13:30.1205584Z } [512 bytes data]
2022-07-11T13:13:30.1230918Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T13:13:30.1231172Z { [94 bytes data]
2022-07-11T13:13:30.1231438Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T13:13:30.1231681Z { [3583 bytes data]
2022-07-11T13:13:30.1237644Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T13:13:30.1237938Z { [365 bytes data]
2022-07-11T13:13:30.1240311Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T13:13:30.1240592Z { [4 bytes data]
2022-07-11T13:13:30.1268451Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T13:13:30.1268996Z } [102 bytes data]
2022-07-11T13:13:30.1269304Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T13:13:30.1269579Z } [1 bytes data]
2022-07-11T13:13:30.1271093Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T13:13:30.1271464Z } [16 bytes data]
2022-07-11T13:13:30.1297492Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T13:13:30.1297922Z { [16 bytes data]
2022-07-11T13:13:30.1298767Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T13:13:30.1299321Z * ALPN, server accepted to use h2
2022-07-11T13:13:30.1299629Z * Server certificate:
2022-07-11T13:13:30.1299856Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T13:13:30.1300119Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T13:13:30.1300408Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T13:13:30.1301125Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T13:13:30.1301485Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T13:13:30.1301769Z *  SSL certificate verify ok.
2022-07-11T13:13:30.1302171Z * Using HTTP2, server supports multi-use
2022-07-11T13:13:30.1302443Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T13:13:30.1303013Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T13:13:30.1303313Z } [5 bytes data]
2022-07-11T13:13:30.1306674Z * Using Stream ID: 1 (easy handle 0x55b3d87138c0)
2022-07-11T13:13:30.1307191Z } [5 bytes data]
2022-07-11T13:13:30.1307930Z > GET /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%20Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T13:13:30.1308387Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T13:13:30.1308740Z > user-agent: curl/7.68.0
2022-07-11T13:13:30.1308956Z > accept: */*
2022-07-11T13:13:30.1309191Z > authorization: Bearer ${System.AccessToken}
2022-07-11T13:13:30.1309402Z > 
2022-07-11T13:13:30.1309584Z { [5 bytes data]
2022-07-11T13:13:30.1309838Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T13:13:30.1310096Z } [5 bytes data]
2022-07-11T13:13:30.1711268Z < HTTP/2 302 
2022-07-11T13:13:30.1712904Z < cache-control: no-cache, no-store, must-revalidate
2022-07-11T13:13:30.1713370Z < pragma: no-cache
2022-07-11T13:13:30.1713707Z < content-length: 731
2022-07-11T13:13:30.1714174Z < content-type: text/html; charset=utf-8
2022-07-11T13:13:30.1714516Z < expires: -1
2022-07-11T13:13:30.1716862Z < location: <https://spsprodweu5.vssps.visualstudio.com/_signin?realm=dev.azure.com&reply_to=https%3A%2F%2Fdev.azure.com%2FSG-GDI-CTO-PublicCloud%2FCloudSolutions%2520Playground%2F_apis%2Fgit%2Frepositories%2FCloudSolutions%2520Playground%2FpullRequests%2F190%2Fthreads%3Fapi-version%3D6.0&redirect=1&hid=d20fa617-a60b-4c93-a4ba-0d57c26f9215&context=eyJodCI6MiwiaGlkIjoiMWEwNjkwYWMtNmFjZi00YmM2LTlmM2MtYjhjM2E2MzRiZjZiIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2>
2022-07-11T13:13:30.1718160Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T13:13:30.1719674Z < set-cookie: VstsSession=%7B%22PersistentSessionId%22%3A%22a206f94e-ad92-4de8-8c08-dcabd6f93a8a%22%2C%22PendingAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22CurrentAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22SignInState%22%3A%7B%7D%7D;SameSite=None; domain=.<http://dev.azure.com|dev.azure.com>; expires=Tue, 11-Jul-2023 13:13:30 GMT; path=/; secure; HttpOnly
2022-07-11T13:13:30.1720973Z < www-authenticate: Bearer authorization_uri=<https://login.microsoftonline.com/e339bd4b-2e3b-4035-a452-2112d502f2ff>
2022-07-11T13:13:30.1721563Z < www-authenticate: Basic realm="<https://tfsprodweu8.visualstudio.com/>"
2022-07-11T13:13:30.1722106Z < x-tfs-processid: b42dcb3f-5f7d-4941-9851-3b9c0081effd
2022-07-11T13:13:30.1722585Z < strict-transport-security: max-age=31536000; includeSubDomains
2022-07-11T13:13:30.1723061Z < activityid: 50bd4c10-ba34-4509-b6bc-a61238ebef5a
2022-07-11T13:13:30.1723515Z < x-tfs-session: 50bd4c10-ba34-4509-b6bc-a61238ebef5a
2022-07-11T13:13:30.1723984Z < x-vss-e2eid: 50bd4c10-ba34-4509-b6bc-a61238ebef5a
2022-07-11T13:13:30.1724753Z < x-vss-senderdeploymentid: c518140b-a1e2-d11a-3c91-1a181d4b1e29
2022-07-11T13:13:30.1725182Z < x-frame-options: SAMEORIGIN
2022-07-11T13:13:30.1725604Z < x-tfs-fedauthrealm: <https://tfsprodweu8.visualstudio.com/>
2022-07-11T13:13:30.1726088Z < x-tfs-fedauthissuer: <https://dev.azure.com/SG-GDI-CTO-PublicCloud/>
2022-07-11T13:13:30.1726620Z < x-vss-authorizationendpoint: <https://vssps.dev.azure.com/SG-GDI-CTO-PublicCloud/>
2022-07-11T13:13:30.1727135Z < x-vss-resourcetenant: e339bd4b-2e3b-4035-a452-2112d502f2ff
2022-07-11T13:13:30.1727671Z < x-vss-s2stargetservice: 00000002-0000-8888-8000-000000000000/visualstudio.com
2022-07-11T13:13:30.1728211Z < request-context: appId=cid-v1:5ff2fb41-7b44-4199-811f-c76fe5186821
2022-07-11T13:13:30.1728717Z < access-control-expose-headers: Request-Context
2022-07-11T13:13:30.1729125Z < x-content-type-options: nosniff
2022-07-11T13:13:30.1729483Z < x-cache: CONFIG_NOCACHE
2022-07-11T13:13:30.1730124Z < x-msedge-ref: Ref A: 15ED56BD20B34009A22E4A1D45BF6374 Ref B: PAR02EDGE0718 Ref C: 2022-07-11T13:13:30Z
2022-07-11T13:13:30.1730510Z < date: Mon, 11 Jul 2022 13:13:29 GMT
2022-07-11T13:13:30.1730729Z < 
2022-07-11T13:13:30.1730906Z { [286 bytes data]
2022-07-11T13:13:30.1730997Z 
2022-07-11T13:13:30.1731445Z 100   731  100   731    0     0  12389      0 --:--:-- --:--:-- --:--:-- 12389
2022-07-11T13:13:30.1731799Z * Connection #0 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T13:13:30.1732088Z <html><head><title>Object moved</title></head><body>
2022-07-11T13:13:30.1733869Z <h2>Object moved to <a href="<https://spsprodweu5.vssps.visualstudio.com/_signin?realm=dev.azure.com&reply_to=https%3A%2F%2Fdev.azure.com%2FSG-GDI-CTO-PublicCloud%2FCloudSolutions%2520Playground%2F_apis%2Fgit%2Frepositories%2FCloudSolutions%2520Playground%2FpullRequests%2F190%2Fthreads%3Fapi-version%3D6.0&redirect=1&hid=d20fa617-a60b-4c93-a4ba-0d57c26f9215&context=eyJodCI6MiwiaGlkIjoiMWEwNjkwYWMtNmFjZi00YmM2LTlmM2MtYjhjM2E2MzRiZjZiIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2>">here</a>.</h2>
2022-07-11T13:13:30.1735045Z </body></html>
2022-07-11T13:13:30.1811135Z ##[section]Finishing: Bash
m
could you rerun with
-L
with the curl command
f
Copy code
2022-07-11T13:18:20.5288732Z ##[section]Starting: Bash
2022-07-11T13:18:20.5292955Z ==============================================================================
2022-07-11T13:18:20.5293173Z Task         : Bash
2022-07-11T13:18:20.5293352Z Description  : Run a Bash script on macOS, Linux, or Windows
2022-07-11T13:18:20.5293555Z Version      : 3.201.1
2022-07-11T13:18:20.5293705Z Author       : Microsoft Corporation
2022-07-11T13:18:20.5293940Z Help         : <https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash>
2022-07-11T13:18:20.5294226Z ==============================================================================
2022-07-11T13:18:20.6519943Z Generating script.
2022-07-11T13:18:20.6532809Z Script contents:
2022-07-11T13:18:20.6533651Z curl -v -X -L GET -H 'authorization: Bearer ${System.AccessToken}' <https://dev.azure.com/SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%20Playground/pullRequests/190/threads?api-version=6.0>
2022-07-11T13:18:20.6541824Z ========================== Starting Command Output ===========================
2022-07-11T13:18:20.6553189Z [command]/usr/bin/bash /home/vsts/work/_temp/cbdee6d0-491e-47c8-bf5b-5ca78c0220e4.sh
2022-07-11T13:18:20.6672807Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T13:18:20.6673215Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T13:18:20.6673356Z 
2022-07-11T13:18:20.6788573Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Could not resolve host: GET
2022-07-11T13:18:20.6789214Z * Closing connection 0
2022-07-11T13:18:20.6789800Z curl: (6) Could not resolve host: GET
2022-07-11T13:18:20.6795180Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-07-11T13:18:20.6795655Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-07-11T13:18:20.6795930Z 
2022-07-11T13:18:20.6801684Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 13.107.42.20:443...
2022-07-11T13:18:20.6802111Z * TCP_NODELAY set
2022-07-11T13:18:20.6811411Z * Connected to <http://dev.azure.com|dev.azure.com> (13.107.42.20) port 443 (#1)
2022-07-11T13:18:20.6813631Z * ALPN, offering h2
2022-07-11T13:18:20.6814084Z * ALPN, offering http/1.1
2022-07-11T13:18:20.6864011Z * successfully set certificate verify locations:
2022-07-11T13:18:20.6864822Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-07-11T13:18:20.6865292Z   CApath: /etc/ssl/certs
2022-07-11T13:18:20.6868530Z } [5 bytes data]
2022-07-11T13:18:20.6868859Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-07-11T13:18:20.6869108Z } [512 bytes data]
2022-07-11T13:18:20.6915844Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-07-11T13:18:20.6916121Z { [94 bytes data]
2022-07-11T13:18:20.6916374Z * TLSv1.2 (IN), TLS handshake, Certificate (11):
2022-07-11T13:18:20.6916800Z { [3583 bytes data]
2022-07-11T13:18:20.6922298Z * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2022-07-11T13:18:20.6922727Z { [365 bytes data]
2022-07-11T13:18:20.6923668Z * TLSv1.2 (IN), TLS handshake, Server finished (14):
2022-07-11T13:18:20.6926169Z { [4 bytes data]
2022-07-11T13:18:20.6952308Z * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2022-07-11T13:18:20.6952607Z } [102 bytes data]
2022-07-11T13:18:20.6952863Z * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2022-07-11T13:18:20.6953125Z } [1 bytes data]
2022-07-11T13:18:20.6953360Z * TLSv1.2 (OUT), TLS handshake, Finished (20):
2022-07-11T13:18:20.6953607Z } [16 bytes data]
2022-07-11T13:18:20.6978009Z * TLSv1.2 (IN), TLS handshake, Finished (20):
2022-07-11T13:18:20.6978547Z { [16 bytes data]
2022-07-11T13:18:20.6979294Z * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
2022-07-11T13:18:20.6979588Z * ALPN, server accepted to use h2
2022-07-11T13:18:20.6979815Z * Server certificate:
2022-07-11T13:18:20.6980047Z *  subject: CN=<http://dev.azure.com|dev.azure.com>
2022-07-11T13:18:20.6980314Z *  start date: Nov  9 16:14:27 2021 GMT
2022-07-11T13:18:20.6980600Z *  expire date: Nov  9 16:14:27 2022 GMT
2022-07-11T13:18:20.6981297Z *  subjectAltName: host "<http://dev.azure.com|dev.azure.com>" matched cert's "<http://dev.azure.com|dev.azure.com>"
2022-07-11T13:18:20.6981656Z *  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 02
2022-07-11T13:18:20.6981953Z *  SSL certificate verify ok.
2022-07-11T13:18:20.6982342Z * Using HTTP2, server supports multi-use
2022-07-11T13:18:20.6982626Z * Connection state changed (HTTP/2 confirmed)
2022-07-11T13:18:20.6982948Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-07-11T13:18:20.6983225Z } [5 bytes data]
2022-07-11T13:18:20.6983489Z * Using Stream ID: 1 (easy handle 0x55f4bad152b0)
2022-07-11T13:18:20.6986117Z } [5 bytes data]
2022-07-11T13:18:20.6986837Z > -L /SG-GDI-CTO-PublicCloud/CloudSolutions%20Playground/_apis/git/repositories/CloudSolutions%20Playground/pullRequests/190/threads?api-version=6.0 HTTP/2
2022-07-11T13:18:20.6987256Z > Host: <http://dev.azure.com|dev.azure.com>
2022-07-11T13:18:20.6987620Z > user-agent: curl/7.68.0
2022-07-11T13:18:20.6987839Z > accept: */*
2022-07-11T13:18:20.6988080Z > authorization: Bearer ${System.AccessToken}
2022-07-11T13:18:20.6988299Z > 
2022-07-11T13:18:20.6988955Z { [5 bytes data]
2022-07-11T13:18:20.6990599Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-07-11T13:18:20.6992497Z } [5 bytes data]
2022-07-11T13:18:20.7185280Z < HTTP/2 405 
2022-07-11T13:18:20.7185952Z < cache-control: no-cache, no-store, must-revalidate
2022-07-11T13:18:20.7186932Z < pragma: no-cache
2022-07-11T13:18:20.7187170Z < allow: GET,POST
2022-07-11T13:18:20.7187510Z < content-length: 91
2022-07-11T13:18:20.7187901Z < content-type: application/json; charset=utf-8
2022-07-11T13:18:20.7188263Z < expires: -1
2022-07-11T13:18:20.7188601Z < p3p: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
2022-07-11T13:18:20.7190071Z < set-cookie: VstsSession=%7B%22PersistentSessionId%22%3A%22730dcd05-276d-4953-b9a1-3933424bbf35%22%2C%22PendingAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22CurrentAuthenticationSessionId%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22SignInState%22%3A%7B%7D%7D;SameSite=None; domain=.<http://dev.azure.com|dev.azure.com>; expires=Tue, 11-Jul-2023 13:18:20 GMT; path=/; secure; HttpOnly
2022-07-11T13:18:20.7192722Z < x-tfs-processid: 1a4dcd5c-a362-4c97-ac4f-c80f5e570081
2022-07-11T13:18:20.7193220Z < strict-transport-security: max-age=31536000; includeSubDomains
2022-07-11T13:18:20.7193716Z < activityid: a685d81a-a8ba-4247-9cc3-04da8cecdd68
2022-07-11T13:18:20.7194254Z < x-tfs-session: a685d81a-a8ba-4247-9cc3-04da8cecdd68
2022-07-11T13:18:20.7194726Z < x-vss-e2eid: a685d81a-a8ba-4247-9cc3-04da8cecdd68
2022-07-11T13:18:20.7195223Z < x-vss-senderdeploymentid: c518140b-a1e2-d11a-3c91-1a181d4b1e29
2022-07-11T13:18:20.7195641Z < x-frame-options: SAMEORIGIN
2022-07-11T13:18:20.7196126Z < request-context: appId=cid-v1:5ff2fb41-7b44-4199-811f-c76fe5186821
2022-07-11T13:18:20.7198154Z < access-control-expose-headers: Request-Context
2022-07-11T13:18:20.7198600Z < x-content-type-options: nosniff
2022-07-11T13:18:20.7198960Z < x-cache: CONFIG_NOCACHE
2022-07-11T13:18:20.7201262Z < x-msedge-ref: Ref A: 477CCCB982A24BEFAEB89EA078D67CF3 Ref B: PAR02EDGE1018 Ref C: 2022-07-11T13:18:20Z
2022-07-11T13:18:20.7201696Z < date: Mon, 11 Jul 2022 13:18:20 GMT
2022-07-11T13:18:20.7201912Z < 
2022-07-11T13:18:20.7202100Z { [91 bytes data]
2022-07-11T13:18:20.7203687Z 
2022-07-11T13:18:20.7205772Z 100    91  100    91    0     0   2219      0 --:--:-- --:--:-- --:--:--  2219
2022-07-11T13:18:20.7206910Z * Connection #1 to host <http://dev.azure.com|dev.azure.com> left intact
2022-07-11T13:18:20.7278251Z ##[section]Finishing: Bash
c
Oops, the
-X GET
need to go together, so try
curl -v -L -X GET -H ...
f
it is too long to post 😄
what do you want me to show you?
m
Ok this looks like the system access token you have in the Pull Request isn’t properly scoped to the project. Im not sure why, but it looks like from the screenshots provided that your or has “enhanced security configurations” setup, which could be causing issue. I’d suggest trying to use the
infracost
pipeline with the PAT you generated to see if
comment
works that way
m
no change the step highlighted here: https://infracost-community.slack.com/archives/C01G63Q4HS7/p1657284225467259?thread_ts=1657283630.531089&amp;cid=C01G63Q4HS7 to use
--azure-access-token yourPAT
instead of the system token
f
ok
m
yup
f
the PAT has full access
w
@few-father-18060 I see we’ve had 70 messages so far, would you like to jump on a Zoom call tmrw so I can better understand your setup to see how we can help you? If so, I’ll DM you a link we can use to schedule the call this week
f
sounds great... thank you for the support guys
w
@few-father-18060 thanks again for pairing with us on Zoom to debug this tricky issue! please subscribe to https://github.com/infracost/infracost/issues/1857 for updates 🙂
l
@few-father-18060 thanks for your help debugging the space issue 🙏 . That’s the fix now released in the v0.10.9 release.
🙌 1
f
Thank you all!