Hello,
For several days my application have a problem with disappearing Access Token and Access Token Secret. The problem came up twice. What could be the reason? Is this a sign that some twitter rules may have been violated? If yes, please tell me what I can improve, so that a similar situation would not happen again. My application posts non-advertising, non-harmful comments (avarage not more than few hundreds daily). The application has been running more than two months.
Thank for any advice.
Cheers,
Piotr
1 Like
Thanks for reaching out. Can you provide some further context about what you mean by a disappearing Access Token and Secret? What are you seeing? Are there any pages where you are finding this?
1 Like
Thanks for reply. By saying “disappearing” I meant the keys have disappeared from the Developer Portal - from the “Consumer Keys” section. So I generated new tokens and saved them in my application config. After a few hours the application stopped working again because the keys disappeared second time. What could be the reason?
1 Like
Thanks for following up here. While these keys aren’t visible unless you click where it says view keys, they should work just fine in the configuration of application unless you regenerated. When making requests are you getting an error of some kind, if so which one?
1 Like
Hello, thanks for reply.
Yeah, that’s clear for me.
That was 401 with error message from Tweepy: “Invalid or expired token”,
so Access Token & Secret really disappeared from Dev Portal.
Piotr,
python dev
1 Like
“Invalid or expired token” error can appear as a more general error when something else is wrong - the tokens may be fine, but also check that it’s just the token pasted in, not any extra spaces or something.
oAuth depends on the system clock so make sure the machine you’re running this on is in sync (use ntp)
2 Likes
Thanks Igor.
I know the situations you are talking about. What is important in that case is that previous tokens dissapeared from Developer Portal. Two times. Did you saw my printscreen? There is button with caption “generate” - not “regenerate”.
Piotr
1 Like
Ah ok i see what you mean now - I also see “Regenerate” button when the tokens are already generated, while you have “Generate” as if they were never generated, that might be a UI bug?
1 Like
I have reached out to our product team to investigate this issue further. I’ll be sure to let you know once I hear more.
2 Likes
@subjectio_relay hope you had a good weekend. Is this issue still occurring?
1 Like
To be honest I was gently waiting for information from You, so I didn’t use my app. I assume that You recommend to use it. I will let you know if this issue still occurring. Thanks Jessica for being here.
Piotr
2 Likes
system
Closed
#12
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.