Comments (5)
I have same use,
I have try with await but and added try catch but never comes with catch as well.
When there is some issue in api call it always break the application is there any solution??
from monday-sdk-js.
I have same use,
I have try with await but and added try catch but never comes with catch as well.When there is some issue in api call it always break the application is there any solution??
I work around it using a 30 second timeout, here is my Typescipt code:
private async callApi<T>(query: string, options?: { token?: string, variables?: { [key: string]: any } }): Promise<T> {
return new Promise(async (resolve, reject) => {
var running = true;
setTimeout(() => {
if (!running)
return
reject("Timeout, an error probably occured")
running = false
}, 30000)
try {
var result = await this.mondayApi.callApi<T>(query, options)
if (!running)
return
resolve(result)
} catch (e) {
reject(e)
}
running = false
})
}
from monday-sdk-js.
@KODIKAS-NL Thank you for.
But this is not good way to wait for 30 seconds. For me I am calling couple of queries I have change your login 10 seconds
thank you
from monday-sdk-js.
@KODIKAS-NL Thank you for.
But this is not good way to wait for 30 seconds. For me I am calling couple of queries I have change your login 10 seconds
thank you
Looks like a real fix is in the works: #39
from monday-sdk-js.
Solved in 0.1.1 version
from monday-sdk-js.
Related Issues (20)
- [Bug] SDK is missing types for monetization methods
- Constants not loaded correctly when NODE_ENV set to "development" HOT 1
- [Bug] Exception on success monday.storage.deleteItem
- [Bug] constants.js: Access to environment variables is breaking cypress tests + storybook stories
- [Bug] Wrong types on monday sdk HOT 1
- Possibly rewrite MondayClientSdk#listen to have an accompanying #unlisten HOT 3
- Encountered Internal server error when trying to upload a file through query HOT 1
- [Bug] Nextjs 14 and monday-sdk-js npm package = "TypeError: fetch is not a function" HOT 3
- [Bug] Property 'appFeatures' does not exist on type 'BaseContext'
- how can I save data with board id and table name HOT 1
- .
- Queries With Whitespace Cause Error in monday.api HOT 3
- [Bug] monday.storage.instance.setItem does have wrong types HOT 6
- [Bug] storage.instance.deleteItem is missing TS types
- monday-sdk-js Types not found after migrating quickstart-react to react Typescript HOT 2
- [Bug] No error handling for calling monday.instance.getItem/setItem with a valid monday.setToken HOT 1
- [Bug] monday.storage.instance.setItem not storing values between page reloads HOT 3
- [Bug] monday.execute for 'openItemCard' does not resolve promise for kind 'updates' HOT 1
- apiVersion not getting included in localApi calls HOT 1
- [Bug] Some execute functions are broken since 0.3.4 HOT 1
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 monday-sdk-js.