Code Monkey home page Code Monkey logo

apolloalamofire's People

Contributors

maxdesiatov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

apolloalamofire's Issues

Error in compilation

Hello,
I'm trying to integrate your lib to test apollo in background mode but it doesn't compile.

This line is in error (l.32) :
let body = ["query": type(of: operation).requestString, "variables": vars]

I got an "Type 'Operation' has no member 'requestString'.
Can you tell me what I've missed ?

I'm on XCode 9.4, Swift 4.1.

Thx in advance,

EDIT: I manage to fix this issue (I think) by replacing type(of: operation).requestString with operation.queryDocument. Now, background websocket is not working but it's another issue :)

Aline

Example is empty

I tried to run the example project, but there was nothing there, ViewController class was empty.
Could you please help check?

Task nil when using Alamofire 5.0.0.rc2 - requires a delay

I realize Alamofire 5 is not yet out, but when doing some testing with 5.0.0.rc2, a GraphQL request will result in a crash:

return request.responseJSON { response in
.
.
.
}.task!

Unexpectedly found nil while unwrapping an Optional value

After running through the debugger, task isn't always created right away.

As a temporary hack solution, I added a usleep:

 let request = sessionManager
                .request(url, method: .post, parameters: body,
                         encoding: JSONEncoding.default, headers: headers)
                .validate(statusCode: [200])
            
 usleep(500)
            
 if loggingEnabled {
    debugPrint(request)
 }

Has anyone else experienced this?

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.