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

Exception when trying to get a transcription object from a call object #222

Closed
kazuar opened this issue Jul 8, 2015 · 2 comments
Closed

Comments

@kazuar
Copy link

kazuar commented Jul 8, 2015

Hello,

Thank you for this package it really helped me retrieve required data from the API.

I think there's a small issue with getting a transcription from a call object.
For example, this code:
client = TwilioRestClient(<ACCOUNT_SID>, <AUTH_TOKEN>)
call = client.calls.get(sid = sid)
recording = call.recordings.list()[0]
recording.transcriptions.list()

will result with the following error:
"The requested resource ... was not found"
(I even tried running recording.load_subresources() which didn't help).

However, if I retrieve the recording object again using the sid, everything will work.
For example, this code will work:
client = TwilioRestClient(<ACCOUNT_SID>, <AUTH_TOKEN>)
call = client.calls.get(sid = sid)
recording = call.recordings.list()[0]
recording = client.recordings.get(sid = recording.sid)
recording.transcriptions.list()

Please let me know if I'm missing anything or if you need more information regarding this.

Thanks!

@carlosdp
Copy link

carlosdp commented Nov 2, 2015

Thanks for letting us know, this will be fixed in a release within the next week or so, I will close this issue when that happens.

In the meantime, that is a good workaround.

@carlosdp
Copy link

If you upgrade to version 6.0.0rc2, this bug has been eliminated. Read the upgrade guide for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants