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

Functions not found for actix-multipart::Multipart #395

Open
TobiasDeBruijn opened this issue Feb 26, 2022 · 4 comments
Open

Functions not found for actix-multipart::Multipart #395

TobiasDeBruijn opened this issue Feb 26, 2022 · 4 comments

Comments

@TobiasDeBruijn
Copy link
Contributor

TobiasDeBruijn commented Feb 26, 2022

Hi there,

When using Paperclip 0.6.1, with the feature actix-multipart enabled and actix-multipart v0.3.0, I'm getting the following errors:

  • error[E0599]: no function or associated item named `update_parameter` found for struct `Multipart` in the current scope
  • error[E0599]: no function or associated item named `update_security` found for struct `Multipart` in the current scope
  • error[E0599]: no function or associated item named `update_security_definitions` found for struct `Multipart` in the current scope
  • error[E0599]: no function or associated item named `update_definitions` found for struct `Multipart` in the current scope
    These functions should be present I'd think, as the feature is enabled.

Environment

cargo -V:

cargo 1.59.0-beta.2 (2e4932801 2022-01-12)

rustup -V:

rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.59.0-beta.2 (98a701b42 2022-01-19)`

Actix-web: 3

Code

The error occur on the following function:

#[post("/content/upload")]
#[api_v2_operation(tags(v1))]
pub async fn video_upload(req: HttpRequest, data: web::Data<AppData>, mut payload: Multipart, session: Session) -> Result<Empty> { ... }
@tiagolobocastro
Copy link
Collaborator

Hmm, it works fine if I build locally but not when pulling paperclip from crates-io.

@gaolaowai
Copy link

gaolaowai commented Jul 13, 2022

Hmm, it works fine if I build locally but not when pulling paperclip from crates-io.

@tiagolobocastro
Forgive my ignorance, but what do you mean by "build locally"? What steps are you following?

@forest1102
Copy link

It happens to me, which prevents me from updating actix-web 4.0. Is this being researched?
I think why @tiagolobocastro does not have an error is related to Cargo.lock.

@tiagolobocastro
Copy link
Collaborator

Sorry @gaolaowai I must have missed your comment.
Tbh I can't remember, probably meant that when building paperclip locally it works.

I wonder if this is an issue with having multiple actix-multipart versions. Could any of you please check your Cargo.lock for multiple versions of actix-multipart?

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

4 participants