Giter VIP home page Giter VIP logo

instabug-dart-http-adapter's People

Contributors

bsameh-at-instabug avatar davidmina96 avatar golane-august avatar mahmoudmehisen avatar salmamali avatar shehabeldeenibrahim avatar ymabdallah avatar

Stargazers

 avatar

Watchers

 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

instabug-dart-http-adapter's Issues

Breaks MultipartRequest uploads

We tried to use the HTTP adapter to as a client for our supabase instance.

But when we try to upload files we get this error:
"type 'MultipartRequest' is not a subtype of type 'Request' in type cast"

We set up the supabase client like this:

  // Supabase
  final client = InstabugHttpClient();
  await Supabase.initialize(
    url: dotenv.env['SUPABASE_URL']!,
    anonKey: dotenv.env['SUPABASE_ANON_KEY']!,
    httpClient: client,
  );

The function we use in supabase is the from.upload:
https://supabase.com/docs/reference/dart/storage-from-upload

This is the part in supabase that does the multipart upload:
https://github.com/supabase-community/storage-dart/blob/70d051fa569b887eb97c8f415b5177aebb6d0e48/lib/src/fetch.dart#L72-L102

Is there something that we could have missed on the setup?
Thank you.

Allow InstabugHttpClient to be composable with other http clients

Our app integrates with several other services which provide custom http client implementations. In order to work with all of them we need a sensible way to compose the various clients together. One common way to do this is to provide an optional "inner client" that we can provide to which all network requests are forwarded. This would allow, for example, an application to integrate with DataDog in addition to Instabug.

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.