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

Method not found RequestVerification.Verify #7

Open
p0onage opened this issue Jun 19, 2020 · 5 comments
Open

Method not found RequestVerification.Verify #7

p0onage opened this issue Jun 19, 2020 · 5 comments

Comments

@p0onage
Copy link

p0onage commented Jun 19, 2020

I added this code below to validate the request coming from Amazon

          // Verifies that the request is a valid request from Amazon Alexa 
            var isValid = await skillRequest.ValidateRequestAsync(req, log);
            if (!isValid)
            {
                return new BadRequestResult();
            }

When I invoke the skill, the function returns a 500 status code

Looking at the logs I can see the issue is with the Verify method being missing but I'm not sure how this is possible? I've tried v1.0.0 and v1.01 and still can't get this to work?

assembly | Alexa.NET.Security.Functions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Method not found: 'System.Threading.Tasks.Task`1<Boolean> Alexa.NET.Request.RequestVerification.Verify(System.String, System.Uri, System.String)'.
@xela1601
Copy link

@p0onage @ThomasPe I have the same issue. Is there already some way to fix this?

@xela1601
Copy link

ok i fixed it by copying the code and not using the nuGet package anymore.

@ThomasPe
Copy link
Owner

ThomasPe commented Aug 3, 2020

Hey, sorry for the late reply. I haven't used this package in a while, I kinda was under the impression that the Alexa.NET package had included this meanwhile. I take it that's not the case?
@xela1601 I'd be happy to look at a PR with a fix!

@craigomatic
Copy link

For what it's worth, I ran into the same issue with an Azure Functions 3.0 app and from what I can tell, the Alexa.NET package doesn't have this built in

@RobotX5
Copy link

RobotX5 commented Jan 4, 2023

Hey, sorry for the late reply. I haven't used this package in a while, I kinda was under the impression that the Alexa.NET package had included this meanwhile. I take it that's not the case? @xela1601 I'd be happy to look at a PR with a fix!

@ThomasPe can you please explain how to use just the alexa.net package with an example. i think i would rather do that please. ever since we upgraded to dot net 6 i am having the worst time trying to get this to work.

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

No branches or pull requests

5 participants