Giter VIP home page Giter VIP logo

Comments (4)

jaydenseric avatar jaydenseric commented on May 23, 2024

I have not seen this error before 🤔

To start with, it's always good to confirm the right version of node is running.

Is graphqlExpress() really missing in the middleware, or is that just a copy-paste error?

from graphql-upload.

Tjark-Kuehl avatar Tjark-Kuehl commented on May 23, 2024

@jaydenseric
I'm running Node Version 8.5.0 and this is how my complete server imports look like

import connect from 'connect'
import cors from 'cors'
import bodyParser from 'body-parser'
import { execute, subscribe } from 'graphql'
import { graphqlConnect, graphiqlConnect } from 'apollo-server-express'
import { SubscriptionServer } from 'subscriptions-transport-ws'
import { apolloUploadExpress } from 'apollo-upload-server'
import { createServer } from 'http'
import jwt from 'jsonwebtoken'
import helmet from 'helmet'

Do you think it might be a problem with express ? So that I cant upload a file because I'm not allowed to


------WebKitFormBoundaryW8XEadWqdlwIbU7l
Content-Disposition: form-data; name="operations"

{"operationName":null,"variables":{},"query":"mutation ($file: Upload!) {\n  uploadAvatar(file: $file)\n}\n"}
------WebKitFormBoundaryW8XEadWqdlwIbU7l
Content-Disposition: form-data; name="variables.file"; filename="Screen Shot 2017-11-13 at 17.07.20.png"
Content-Type: image/png


------WebKitFormBoundaryW8XEadWqdlwIbU7l--

This is the XHR Request from the client.
Should it look like this ? Other Mutations had variables in it so it might be a incompatibility with vue-apollo

And do I need to use graphqlExpress? because I'm using apollo-server-express instead

from graphql-upload.

jaydenseric avatar jaydenseric commented on May 23, 2024

The request looks ok.

It looks like you are not using express. I don't know how your middleware fits together in this situation.

If you add a custom debug middleware right between apolloUploadExpress and Apollo server, what does the re-assembled request look like?

from graphql-upload.

jaydenseric avatar jaydenseric commented on May 23, 2024

Closing because the issue is currently not reproducible, and the entire API is about to change anyway.

Feel free to continue the discussion if anything comes to light 🙂

from graphql-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.