Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Twilio API call for updating numbers in a trust profile. #529

Closed
kschmitz222 opened this issue Apr 28, 2023 · 4 comments
Closed
Labels
Stale status: help wanted requesting help from the community type: bug bug in the library

Comments

@kschmitz222
Copy link

Issue Summary

I downloaded the Twilio-CLI was able to successfully run other commands after setting up my authorization. Such as twilio phone-numbers list when I attempted to run the command I desired it failed with an error of twilio-cli encountered an unexpected error please run this with the -l debug flag and submit the results here. I am on Windows for clarity. and tried running the command from both CMD prompt and Powershell with the same error.

Steps to Reproduce

  1. Have Windows Version of Twilio-CLI
  2. Run code below with sids.
  3. Received the output below.

Code Snippet

# twilio api:trusthub:v1:trust-products:channel-endpoint-assignments:create --trust-product-sid mysidhere --channel-endpoint-type phone-number --channel-endpoint-sid mysidhere -l debug

Exception/Log

#  » twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: "https://github.com/twilio/twilio-cli/issues"

Technical details:

  • twilio-cli version: twilio-cli/5.7.0 win32-x86
  • node version:node-v16.20.0
  • Command output with debug logging enabled (adding -l debug to the end of the command):
# twilio api:trusthub:v1:trust-products:channel-endpoint-assignments:create --trust-product-sid myTrustsidhere --channel-endpoint-type phone-number --channel-endpoint-sid mynumbersidhere -l debug
[DEBUG] Config File: C:\Users\redacted\.twilio-cli\config.json
[DEBUG] Using profile: mine
[DEBUG] Schema for "trust-product-sid": {"type":"string","minLength":34,"maxLength":34,"pattern":"^BU[0-9a-fA-F]{32}$"}
[DEBUG] Schema for "channel-endpoint-type": {"type":"string","description":"The type of channel endpoint. eg: phone-number"}
[DEBUG] Schema for "channel-endpoint-sid": {"type":"string","minLength":34,"maxLength":34,"pattern":"^[a-zA-Z]{2}[0-9a-fA-F]{32}$","description":"The SID of an channel endpoint"}
[DEBUG] Provided flags: {"trust-product-sid":"trustsid","channel-endpoint-type":"phone-number","channel-endpoint-sid":"numbersid","cli-log-level":"debug","cli-output-format":"columns","silent":false,"skip-parameter-validation":false,"properties":"sid"}
[DEBUG] domainName=trusthub, path=/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments, actionName=create
[DEBUG] pathNode=TrustProductSid, value=mytrustsidhere
[DEBUG] -- BEGIN Twilio API Request --
[DEBUG] post https://trusthub.twilio.com/v1/TrustProducts/mysidhere/ChannelEndpointAssignments
[DEBUG] Form data:
[DEBUG] ChannelEndpointType=phone-number&ChannelEndpointSid=mysidhere
[DEBUG] Custom HTTP Headers:
[DEBUG] User-Agent: twilio-cli/5.7.0 @twilio/cli-core/7.9.0 (win32 ia32) twilio-api-client/7.9.0 api:trusthub:v1:trust-products:channel-endpoint-assignments:create
[DEBUG] -- END Twilio API Request --
[DEBUG] Found command "api:trusthub:v1:trust-products:channel-endpoint-assignments:create" plugin: twilio-cli
 » twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: "https://github.com/twilio/twilio-cli/issues"
[DEBUG] self signed certificate in certificate chain
[DEBUG] Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket._finishInit (node:_tls_wrap:953:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12)
@AsabuHere
Copy link
Contributor

Hey @kschmitz222 ,thanks for reaching out. We have added this in our internal backlog. Pull requests and +1s on the feature request will help it move up the backlog.

@AsabuHere AsabuHere added status: help wanted requesting help from the community type: bug bug in the library labels May 3, 2023
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or comment or this issue will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jun 3, 2023
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

1 similar comment
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale status: help wanted requesting help from the community type: bug bug in the library
Projects
None yet
Development

No branches or pull requests

2 participants