twilio / twilio-cli

Unleash the power of Twilio from your command prompt
MIT License
162 stars 79 forks source link

Lookup V2 request issues error message saying `"validationResults" is not a valid property name` #504

Closed robinske closed 1 year ago

robinske commented 1 year ago

Issue Summary

The API call still works, it just prints an annoying message before the wanted output.

Seems similar to am issue from 2021 but I haven't been able to track down a specific discrepancy in API definitions.

Steps to Reproduce

Using CLI v5.0+:

twilio api:lookups:v2:phone-numbers:fetch --phone-number +14159929960

The output will include » "validationResults" is not a valid property name.

Technical details:

bnb commented 1 year ago

FWIW running the same command I'm getting the same error.

kridai commented 1 year ago

Hi @robinske, Thanks for reaching out. This is something that needs to be updated from the api side. We have reached out to the team. +1 to the issue will help us move it higher in the priority list. meanwhile alternative way to prevent the message would be to pass the property flag with the properties you need displayed. for eg twilio api:lookups:v2:phone-numbers:fetch --phone-number [+14159929960](tel:+14159929960) --properties=callingCountryCode,phoneNumber,countryCode,valid,nationalFormat

sbansla commented 1 year ago

@robinske Below mentioned output was coming because validationResults was not set to any value. This has been removed. Fix should be available in next release. » "validationResults" is not a valid property name.

childish-sambino commented 1 year ago

Fixed by https://github.com/twilio/twilio-cli-core/commit/b00131887a91ac51226901f75c3062154b631182#diff-411381779985366649534b3f7805166b4e9f73f186af4e9e2b20d450805f27bb