GithubHelp home page GithubHelp logo

Comments (3)

eandre avatar eandre commented on May 29, 2024

Thanks for the report @saujanreshmi! From the stack trace, it seems like the issue is most likely due to having defined path parameters in the path annotation, but not having a corresponding parameter on the function signature.

A correct signature might be:

//encore:api public method=POST path=/blog/:postID/comment
func AddComment(ctx context.Context, postID int, params *AddCommentParams) error

Notice the postID function parameter corresponding to the :postID path parameter.

I think if you fix that your code should work. If that's not the issue it would be great if you can share a reproducer.

Regardless, we'll fix the issue in the compiler so the error is reported correctly.

from encore.

saujanreshmi avatar saujanreshmi commented on May 29, 2024

Hi @eandre , Code works fine locally for me, I am only getting this error in my deploys.

Screenshot 2023-06-12 at 8 51 21 am

from encore.

eandre avatar eandre commented on May 29, 2024

This is now fixed (#763), thanks very much for reporting!

from encore.

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.