Comments (8)
I'll try my best! 💪 I still don't fully understand what the retry id is telling me half the time, but I'll propose a PR with what I think would be a better solution.
from botframework-directlinejs.
Ooooh! Pretty! I'll look into this.
from botframework-directlinejs.
I have the same strange error on a server environment, it's not happening on localhost. I thought it was related to an update of botbuilder from 3.13.1 to 3.15.0, but reverting the version didn't solve it.
I can go to an earlier commit where it is still working, so what could possibly be the reason?
from botframework-directlinejs.
Solved it, the update of restify from version 6 to 7 caused this error on the server. Reverting fixed it.
from botframework-directlinejs.
I might work on wiring this up. Not sure how difficult it will be... but it would be really useful for us to have these HTTP status codes available at the client level. It would save us some time debugging issues if we had access to the status code.
I've also been thinking... Could we get rid of the "retry" id and handle it as an error? Would be really nice to have that retry just be an error with status codes included. Sometimes that retry id is super ambiguous to us and we don't know what's going on. Same goes for not having http status codes from the bot propagate up to the client.
from botframework-directlinejs.
I'm open to a better idea. I deeply regret the "retry" id -- one of those short term hacks that never got corrected.
from botframework-directlinejs.
For instance, Web Chat v4 no longer use activity ID of retry
.
I think there are two parts here,
- Surface the HTTP error if we receive 502 from Direct Line platform
- Remove returning
retry
as activity ID and always throw an appropriate error (including 502 bot errors)
from botframework-directlinejs.
In our app we have a fork that has something like this to get better error information: #115
from botframework-directlinejs.
Related Issues (20)
- Whether to support the wechat mini program HOT 1
- Hello, how to send by directline, the ID of my QA environment? HOT 2
- Please create an Offline DirectLine Emulation that is supported by Microsoft.
- DirectlineStreaming doesn't work with Node.js HOT 7
- Error with Power Virtual Agent: Site Missing code 403 from https://directline.botframework.com/v3/directline/conversations HOT 1
- DirectlineStreaming - Retrying connection after end HOT 5
- Update webpack target for modern Node HOT 1
- DirectLineStreaming: unhandled rejection from connectWithRetryAsync in activity$
- While sending attachment, activity API was not triggering using botframework-directlinejs HOT 2
- Post an activity with attachment occurs 502 HOT 3
- Attachements limitation and expiry on DirectLine HOT 1
- DirectlineStreaming: Errors on disconnect are written to console HOT 2
- networkInformation: Switching network type, then switching back again, results in RECONNECT_REJECTED HOT 1
- Angular 15 with botframework-directlinejs does not compile due to typings errors. HOT 3
- [Error] NetworkInformation, missing Interface. HOT 4
- Mocking the WebSocket URL for end to end testing using playwright/cypress. HOT 2
- Application crashes when refresh token returns an error HOT 2
- Receiving repeated user input as part of response from direct line bot HOT 1
- Multiple Continuous API Requests Issue HOT 3
- API issue HOT 2
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 botframework-directlinejs.