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

Failed to tweet; Malformed UTF-8 characters, possibly incorrectly encoded #271

Open
1 task done
cartelvid opened this issue Aug 19, 2023 · 7 comments
Open
1 task done
Assignees
Labels
type:bug Something isn't working.

Comments

@cartelvid
Copy link

Describe the bug

When i try "Tweet Now" i see this error: Failed to tweet; Malformed UTF-8 characters, possibly incorrectly encoded

And Callback Url is here: https://www.javuln.com/wp-admin/admin-post.php?action=authoshare_authorize_callback

"Something went wrong. Please try again." error is in here.

Dont hack me please :D i want to use your plugin and i hope it will be greater than now.

Steps to Reproduce

  1. "Tweet Now" and show me error.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@cartelvid cartelvid added the type:bug Something isn't working. label Aug 19, 2023
@iamdharmesh
Copy link
Member

Hi @cartelvid,

Thank you for reporting the issue.

Based on the error it seems the error is due to malformed UTF-8 characters in the tweet body. Are you facing this error with every post/page or on a specific post only? Also, could you please help to provide the tweet message or post title in which you get this error? It will be helpful to identify the issue you are facing.

Thank you.

@iamdharmesh iamdharmesh added the needs:feedback This requires reporter feedback to better understand the request. label Aug 25, 2023
@cartelvid
Copy link
Author

cartelvid commented Aug 28, 2023 via email

@github-actions github-actions bot removed the needs:feedback This requires reporter feedback to better understand the request. label Aug 28, 2023
@Sidsector9
Copy link
Member

@iamdharmesh I tested with some non UTF-8 characters but was not reproduce the issue.

I suspect this to be the error causing line:

https://github.com/abraham/twitteroauth/blob/8eb8a3bec3f7ea2850ad6d3fd4e3450423b30136/src/TwitterOAuth.php#L817

@cartelvid can you share the text you're trying to tweet?

@cartelvid
Copy link
Author

cartelvid commented Sep 8, 2023 via email

@iamdharmesh
Copy link
Member

Sure, here it is. " Failed to tweet; Malformed UTF-8 characters, possibly
incorrectly encoded"

@cartelvid Could you please provide a post title or custom tweet message that you are trying to tweet? This is the error message.

Thank you.

@cartelvid
Copy link
Author

cartelvid commented Sep 8, 2023 via email

@jeffpaul jeffpaul added this to the Future Release milestone Jan 11, 2024
@jeffpaul
Copy link
Member

@iamdharmesh is this actionable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working.
Projects
Status: In Progress
Development

No branches or pull requests

4 participants