question

Nathan Allen avatar image
Nathan Allen asked Samyukta Bharadwaj edited

Create Team Messaging Tutorial Python Error

I apologize if this has been solved already, but I haven't found a thread addressing this. When pasting & running the code snippet from the Create Team Messaging Team Tutorial, I get the following error: 'keys must be str, int, float, bool or None, not builtin_function_or_method'. I figured it was the id variable that causes the error, but when changing it to "id", I then get a HTTP424 error. Much assistance/direction would be appreciated. Thank you!screenshot-2023-06-30-101637.png

developer sandbox
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

Thanks for reporting this! Yes, it is a mistake in the example code. The keys must be quoted as 'id'.

We will fix that and commit a change in our next dev guide updates.

UPDATED: This is weird too. Checking the local source code I could see that the params are well quoted. Even the the one within the # comments 'email': '"...".

Anyway, we will update it accordingly soon.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Nathan Allen avatar image
Nathan Allen answered Phong Vu commented

Do you have any idea why it would throw a HTTP424 error after correctly adding single quotes?

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image Phong Vu ♦♦ commented ·

Do you provide valid "id"? Where did you read the id and specify in your code?

The ids in the code are just examples.

0 Likes 0 ·
Nathan Allen avatar image
Nathan Allen answered
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj answered Samyukta Bharadwaj edited

@Nathan Allen I tested it out in my workspace and it works for me. As Phong mentioned, did you make sure to substitute it with the extensionIds from your account? If that doesn't work either. I would need to investigate this further by looking into your app settings. Can you please submit a ticket here developers.ringcentral.com/support/create-case

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys