[Cloud Anchors Management API] When Using Cloud Anchors Management API in Windows
APP 2021. 7. 2. 14:25Conclusion> Don't use Powershell or cmd. Use Git Bash.
I followed this page's instruction to manage Cloud Anchors.
https://developers.google.com/ar/develop/platform-agnostic/cloud-anchors/management-api
I used windows powershell, cmd. When I request this for List all Cloud Anchors.
export BEARER_TOKEN=`(oauth2l fetch --json creds.json arcore.management)`
curl -H "Authorization: Bearer $BEARER_TOKEN" https://arcorecloudanchor.googleapis.com/v1beta2/management/anchors?page_size=50&order_by=last_localize_time%20desc
I GOT ERROR MESSAGE
Invoke-WebRequest : 'Headers' 매개 변수를 바인딩할 수 없습니다. "System.String" 유형의 "Authorization: Bearer " 값을 "S
ystem.Collections.IDictionary" 유형으로 변환할 수 없습니다.
위치 줄:2 문자:9
+ curl -H "Authorization: Bearer $BEARER_TOKEN" https://arcorecloudanch ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I tried about 5 hours to fix this error.
but solution was simple. Use Git Bash.
'APP' 카테고리의 다른 글
[Zepeto] 제페토 멀티플레이 가이드 따라하기 (0) | 2022.08.25 |
---|---|
[Unity] Error, 빌드하면 카메라가 나오지 않는 문제 (0) | 2021.07.16 |
[Cloud Anchors] ARCore Extensions for Unity's AR Foundation (0) | 2021.06.24 |
[Unity] 싱글톤의 잘못된 사용 예 (0) | 2021.05.18 |
[Unity] Unity-Google LeaderBoard 연동 에러 (0) | 2020.04.02 |