You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if it is a good title, maybe it is not even a place to ask questions like this, but I am totally stuck and unable to move forward with this training. I am at 7.5.4.2, where we add new column status, so after doing this in subscriptions.rs something happens with the docker build, it fails no matter what I do in sqlx-data.json . Did anyone have this error while running docker build locally?
Step 11/18 : RUN cargo build --release --bin zero2prod
---> Running in ee2eb93349b4
Compiling zero2prod v0.1.0 (/app)
error: failed to find data for query INSERT INTO subscriptions (id, email, name, subscribed_at, status)
VALUES ($1, $2, $3, $4, 'confirmed')
FROM lukemathwalker/cargo-chef:latest-rust-1.77.2 as chef
WORKDIR /app
FROM chef as planner
COPY . .
# Compute a lock-like file for our project
RUN cargo chef prepare --recipe-path recipe.json
FROM chef as builder
COPY --from=planner /app/recipe.json recipe.json
# Build our project dependencies, not our application!
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
ENV SQLX_OFFLINE true
# Build our project
RUN cargo build --release --bin zero2prod
error message suggests like if the query is not doing the same thing the code is doing. My code is exactly the same as in the book. Maybe this issue could be about adding what is necessary to this json file so other people won't get stuck as me here? Does anyone have any idea how to fix this, I will be very grateful, it's been too long...
The text was updated successfully, but these errors were encountered:
I don't know if it is a good title, maybe it is not even a place to ask questions like this, but I am totally stuck and unable to move forward with this training. I am at 7.5.4.2, where we add new column
status
, so after doing this insubscriptions.rs
something happens with the docker build, it fails no matter what I do insqlx-data.json
. Did anyone have this error while running docker build locally?here is sqlx-data.json:
and dockerfile until this step:
error message suggests like if the query is not doing the same thing the code is doing. My code is exactly the same as in the book. Maybe this issue could be about adding what is necessary to this json file so other people won't get stuck as me here? Does anyone have any idea how to fix this, I will be very grateful, it's been too long...
The text was updated successfully, but these errors were encountered: