-
Notifications
You must be signed in to change notification settings - Fork 85
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
Unexpected FileNotFoundException while upgrading from 2.0.2 to 2.0.3 #45
Comments
Same thing here. That error has no reason to exist and should ignore whenever not finding an sdk.properties file. As quick fix, I've just created an empty file at the root of the project and no more unnecessary error messages on startup. |
Experiencing the same here. It is indeed confusing. |
I get the same error in 2.0.3 version. This, combined with the fact that twitter api was not working properly yesterday, led me to wonder what went wrong and if additional configuration was needed. Good to know the sdk.properties file is not necessary. |
I am also facing the same issue. |
self-cite: <i've just created an empty file sdk.properties in project's root folder then that message was gone> adequate solution? thx for feedback. |
If no
sdk.properties
is present, the following stacktrace is printed:The change was introduced with #32.
Can we simply ignore the exception in https://github.com/twitterdev/twitter-api-java-sdk/blob/main/src/main/java/com/twitter/clientlib/SDKConfig.java#L40 instead of printing the stacktrace, which might confuse users?
AFAIK the
sdk.properties
aren't mandatory, so perhaps it would be best to just ignore the exception instead of printing the stacktrace?In addition, I am wondering, if this snippet shouldn't use the classloader in order to load the properties file?
The text was updated successfully, but these errors were encountered: