Comments (4)
@chiliec Here, I fixed it. ;)
Released 0.2.8
to clojars
from morse.
I'm also experiencing this issue. I think the consumer loop exits and so no more updates are ever fetched.
The issue appears to be in the use of alts!
in create-producer
: (api/get-updates)
returns nil
(via log/error
) when an error status code is returned, which means data
(via alts!
) is nil
and thus the updates channel is closed and the create-consumer
loop exits.
I think the producer code needs to check the channel value returned from alts!
instead of throwing it away, if the channel is the running
channel then indeed it's time to exit. If it's the resopnse
channel then the loop should recur at the current offset.
from morse.
@jonathanj you were right, changed nil to ::error
from morse.
Thank you @Otann.
from morse.
Related Issues (20)
- Support /command@YourBot style commands HOT 3
- Exception causes long polling process shutdown HOT 2
- Don't leak dev-time dependencies HOT 3
- `polling/start` cannot signal when the updates channel is closed HOT 10
- Is it possible to pass a core.async channel to the "start" function in polling to get the updates directly into it? HOT 7
- Global timeout outside of clj-http for getting updates in the polling process. HOT 1
- Bot freezes for unknown reasons HOT 12
- Got HTTP request timed out HOT 2
- pooling started, but not working HOT 3
- Update handler HOT 1
- no delete-webhook function.
- Long-polling HTTP request timed out, stopping polling HOT 8
- Infinite loop with web hook HOT 1
- Handle upgrading a group to supergroup HOT 3
- Longpolling: Does not survive random 502 from Telegram HOT 3
- inline query did not check if update is a inline query
- 403 Forbidden: bot was blocked by the user HOT 4
- hellonico/morse 0.2.4 ? HOT 1
- Message is sent but throws an exception HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morse.