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

Fetching channel history - NumberFormatException #249

Open
dzikoysk opened this issue Apr 3, 2018 · 0 comments
Open

Fetching channel history - NumberFormatException #249

dzikoysk opened this issue Apr 3, 2018 · 0 comments

Comments

@dzikoysk
Copy link

dzikoysk commented Apr 3, 2018

List<SlackMessagePosted> messages = channelHistoryModule.fetchHistoryOfChannel(channel.getId(), history);
java.lang.NumberFormatException: For input string: "1522750944.000448"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:589)
	at java.lang.Long.parseLong(Long.java:631)
	at com.google.gson.JsonPrimitive.getAsLong(JsonPrimitive.java:238)
	at com.ullink.slack.simpleslackapi.impl.GsonHelper.getLongOrDefaultValue(GsonHelper.java:38)
	at com.ullink.slack.simpleslackapi.impl.GsonHelper.getLongOrNull(GsonHelper.java:13)
	at com.ullink.slack.simpleslackapi.impl.SlackJSONMessageParser.extractAttachmentsFromMessageJSON(SlackJSONMessageParser.java:474)
	at com.ullink.slack.simpleslackapi.impl.SlackJSONMessageParser.parseMessagePublished(SlackJSONMessageParser.java:241)
	at com.ullink.slack.simpleslackapi.impl.SlackJSONMessageParser.extractMessageEvent(SlackJSONMessageParser.java:175)
	at com.ullink.slack.simpleslackapi.impl.SlackJSONMessageParser.decode(SlackJSONMessageParser.java:62)
	at com.ullink.slack.simpleslackapi.impl.ChannelHistoryModuleImpl.fetchHistoryOfChannel(ChannelHistoryModuleImpl.java:131)
	at com.ullink.slack.simpleslackapi.impl.ChannelHistoryModuleImpl.fetchHistoryOfChannel(ChannelHistoryModuleImpl.java:114)
	at com.ullink.slack.simpleslackapi.impl.ChannelHistoryModuleImpl.fetchHistoryOfChannel(ChannelHistoryModuleImpl.java:89)
	at com.ullink.slack.simpleslackapi.impl.ChannelHistoryModuleImpl.fetchHistoryOfChannel(ChannelHistoryModuleImpl.java:84)
	at com.ullink.slack.simpleslackapi.impl.ChannelHistoryModuleImpl.fetchHistoryOfChannel(ChannelHistoryModuleImpl.java:79)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant