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

create_audience_group() return None #764

Closed
THChen2002 opened this issue Mar 5, 2025 · 3 comments · Fixed by #766
Closed

create_audience_group() return None #764

THChen2002 opened this issue Mar 5, 2025 · 3 comments · Fixed by #766
Assignees
Labels

Comments

@THChen2002
Copy link

I'm using the create_audience_group() method, which is supposed to return a CreateAudienceGroupResponse object. However, in my implementation, it returns None. I verified that the audience group was successfully created by using get_audience_groups(). Additionally, when I called LINE's native API directly, it returned the expected response, but when using the SDK, there is no return value.

Image

@Yang-33
Copy link
Contributor

Yang-33 commented Mar 10, 2025

Thank you for using line-bot-sdk-python, @THChen2002 !
I found the root cause, and your program is not wrong. I'll make a patch within this week.
After the fix, I will create a patch version, so please wait.

In the meantime, you can do one of the following:

  • Wait for the release of the patch version
  • Use create_audience_group_with_http_info() instead of create_audience_group(), as this is not broken

Thank you for the report!

@Yang-33
Copy link
Contributor

Yang-33 commented Mar 10, 2025

root cause is that definition in yaml is wrong: line/line-openapi#87
and mapping is wrong(this should be 202, not 200)

@Yang-33 Yang-33 linked a pull request Mar 10, 2025 that will close this issue
@Yang-33
Copy link
Contributor

Yang-33 commented Mar 10, 2025

this has been fixed in https://github.com/line/line-bot-sdk-python/releases/tag/v3.16.2. Thank you for your report.

@Yang-33 Yang-33 closed this as completed Mar 10, 2025
@Yang-33 Yang-33 self-assigned this Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants