Comments (7)
I agree, having the 141 error for each cloudFunction error is hard to deal with. We have to test for 141, then go inside the error, to find another code, which is not very convenient...
from docs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from docs.
OK, then I guess we only have to add a range to the docs.
I noticed that 3rd party modules may want to use custom error codes too. So should we define a suggested range for these as well?
- Parse Server and Parse Platform modules:
... - 4999
- 3rd party modules:
5000 - 8999
- Developers:
9000 - ...
from docs.
Well, the only change to do in the docs in my opinion is to add something about the usage of new Parse.Error(code, message)
which let developer uses any code they want.
from docs.
@parse-community/server any thoughts on this?
The current suggestion is to define the following error code ranges:
- Parse Server and related modules: <= 4999 (incl. neg. numbers)
- 3rd party modules (not managed by Parse Platform, self-managed by community on first come first served basis): 5000 - 8999
- Developers (custom app errors): >=9000 <=9999
from docs.
After some more thought, I don't believe that the "3rd party modules" range is feasible because it would have to be community managed, for which I don't see a concept. So I would say that for now we'll just specify that developers have a reserved error range >=9000 <=9999 which they can use for custom errors. Neither Parse Server now any Parse Server adapter or module should use that range, and an 3rd party module should not use the range to prevent conflicts.
from docs.
Closing via #941
from docs.
Related Issues (20)
- π Change block codes format to jsonc
- π Fix json example HOT 1
- π Navigation links in the API page are broken HOT 5
- π Wrong link to the API Reference in JavaScript block HOT 1
- π Improving Parse Server AWS guide
- π Refurbishment of Python code examples HOT 3
- Endpoint `loginAs` is falsely documented to require GET request HOT 6
- Remove forms that request sensitive information
- Parse Server Option `enforcePrivateUsers` not documented HOT 3
- π Remove reference to `{ usePost: true }` option in login documentation
- π Examples section with end to end tutorial HOT 6
- π How to use Defined Schema on existing Parse Server installation
- Update to PS6 π
- Create Rate Limit docsπ
- Create auth adapter docs
- Fix docs page HOT 6
- Documentation HOT 2
- π
- πProvide information on using Facebook's Limited Token
- π Missing examples throughout the docs
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 docs.