Comments (18)
Thanks! I'll try to submit a fix for this later tonight
from apollo-errors.
i actually lost sleep because of this issue :)
from apollo-errors.
Please, fix this )
from apollo-errors.
Any update on this? I had to downgrade to 1.5.1 😞
from apollo-errors.
Somehow this only happens if I run it in production mode, locally it works?
from apollo-errors.
A fix for this should be live in 1.8.0
. Can anyone here confirm?
from apollo-errors.
I am seeing the same thing. I don't know enough about the history and/or reasoning to use arguments[2]
in the ApolloError constructor (instead of using the config
variable) to put in a PR for it, but there are only 2 args in the arguments array when I through and the relevant data is in config / arguments[1].
I haven't tried v 1.5.1 myself, but by tweaking that argument reference it works as expected for me.
from apollo-errors.
I am attempting to throw an error inside of a resolver by doing throwing an error created using apollo-errors
const UserDoesntExistError = createError("UserDoesntExist", {
message: "A user with this email address does not exist",
})
...
if (!user) throw new UserDoesntExistError()
On the frontend when this error occurs, the message is not displayed.
from apollo-errors.
bump
from apollo-errors.
Any updates on this?
from apollo-errors.
just created a simple pull request: #32
from apollo-errors.
My pull request still doesn't fix all issues so it is better to just use 1.5.1
from apollo-errors.
#29 should also fix this issue
from apollo-errors.
@thebigredgeek confirmed it works.
from apollo-errors.
@thebigredgeek missing again in 1.9 plz reopen it
from apollo-errors.
@theGlenn I thought we had a test case for this. confused haha
from apollo-errors.
I'm also facing this issue. It only seems to happen in production for me. Locally everything works fine.
from apollo-errors.
@theGlenn did you have a chance to test for this?
from apollo-errors.
Related Issues (20)
- Work with schema stitching. HOT 4
- Data values as array of object instead of object HOT 2
- es6-error v4.1.0 breaks formatError HOT 4
- showPath option is not doing anything HOT 2
- Feature Proposal: `internalData` Property on ApolloError Constructor HOT 2
- GraphQL response is always null HOT 2
- Spec compliant error HOT 19
- How to add formatError to subscriptions end-point HOT 3
- Returned error empty message HOT 5
- Reasoning behind the two-step error pattern? HOT 3
- Working with Apollo Server 2.0 HOT 5
- Where to add to GraphQL Yoga ? HOT 1
- Create V2.0 Branch HOT 2
- message as an object HOT 4
- losing stack trace, anyway to retain it ? HOT 5
- How do you compare a thrown error to an ApolloError type? HOT 2
- apollo-errors vs apollo-server built in ApolloError? HOT 2
- How to pass variables into the error message. HOT 2
- Dependency Dashboard
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 apollo-errors.