Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPnP specific method (NOTIFY) considered invalid #440

Open
sawcce opened this issue Aug 26, 2024 · 0 comments
Open

UPnP specific method (NOTIFY) considered invalid #440

sawcce opened this issue Aug 26, 2024 · 0 comments

Comments

@sawcce
Copy link

sawcce commented Aug 26, 2024

Hi there! I'm trying to implement a simple http server to handle gena callbacks in a flutter app that communicates with UPnP devices, as far as I'm aware the NOTIFY and SUBSCRIBE methods aren't part of the HTTP standard (I could be wrong though) which means that I get this error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument (verb): expected a valid HTTP method: "NOTIFY" at router.dart:131

I don't know if there is a way to override this "checking" behavior which makes it impossible for me to do things as simple as:

    genaRouter.add("NOTIFY", "/callback", (Request request) {
      print(inspect(request));
      return Response.ok("OK!");
    });

A request example I kindly took from a wireshark capture of my local network:
image.

If I missed anything that would make it possible to fix this I apologize :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@sawcce and others