https://flyte.org logo
#ask-the-community
Title
# ask-the-community
p

Prasad Bhalerao

09/07/2023, 3:50 PM
Copy code
vendor.4cb66fb8bb2bca222104.js:8 Error: invalid wire type 4 at offset 1
    at l.skipType (vendor.4cb66fb8bb2bca222104.js:2:33214)
    at e.decode (vendor.4cb66fb8bb2bca222104.js:8:1795729)
    at t.decodeProtoResponse (main.31219686ea86aafa4419.js:1:541961)
    at t.getAdminEntity (main.31219686ea86aafa4419.js:1:539552)
receving this error in the browsers console...
h

Haytham Abuelfutuh

09/07/2023, 4:03 PM
Hey @Prasad Bhalerao sorry you are having an issue... have you installed flyte-binary? or flyte-core? helm charts? or is this
flytectl demo start
?
p

Prasad Bhalerao

09/07/2023, 4:03 PM
flyte-binary
helm charts
h

Haytham Abuelfutuh

09/07/2023, 4:14 PM
oh... do you happen to know which version?
p

Prasad Bhalerao

09/07/2023, 4:15 PM
latest
h

Haytham Abuelfutuh

09/07/2023, 5:19 PM
That's not good 🙂 @Eduardo Apolinario (eapolinario) mind taking a look? This looks like a proto incompatibility issue?
p

Prasad Bhalerao

09/07/2023, 5:21 PM
@Haytham Abuelfutuh let me give you more clarity I'm deploying flyte with my existing application I did changes in dockerfile of flyteconsole for base url and admin API url Also did changes in go conde change hard-coded /console to mine route
Also I'm using /flyte instead of /console and for admin API url also using /flyte
As a prefix
So my existing route will not conflict
e

Eduardo Apolinario (eapolinario)

09/07/2023, 5:34 PM
@Prasad Bhalerao, can you share which exact changes you made?
p

Prasad Bhalerao

09/07/2023, 5:46 PM
in https://github.com/flyteorg/flyteconsole/blob/master/Dockerfile RUN : \ --mount=type=cache,target=/root/.yarn \ # install production dependencies && yarn workspaces focus --all --production \ && yarn build:types \ && BASE_URL=/flyte ADMIN_API_URL=/flyte yarn run build:prod \ && mkdir /app \ && cp -R ./website/dist/* /app
these are two changes i made
@Haytham Abuelfutuh
e

Eduardo Apolinario (eapolinario)

09/07/2023, 5:55 PM
ok, thanks. Looking.
p

Prasad Bhalerao

09/07/2023, 5:57 PM
ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: flyte-binary spec: ingressClassName: beta rules: - http: paths: - path: /flyte pathType: Prefix backend: service: name: flyte-binary-http port: number: 8088
e

Eduardo Apolinario (eapolinario)

09/07/2023, 5:57 PM
@Prasad Bhalerao, why are you setting
ADMIN_API_URL
to
/flyte
?
p

Prasad Bhalerao

09/07/2023, 5:57 PM
Yes
becasue /api is making conflct with my existing app
also api sending wrong response
@Haytham Abuelfutuh
e

Eduardo Apolinario (eapolinario)

09/07/2023, 7:22 PM
@Prasad Bhalerao, from the screenshot you pasted the call to
/flyte/api/v1/projects
is returning the flyteconsole main page. Let me take another look at how we route requests in single-binary.
y

Yee

09/07/2023, 10:37 PM
@Prasad Bhalerao could take a step back and help me understand what you’re trying to do? like ultimately what’s the goal?
k

Ketan (kumare3)

09/07/2023, 11:10 PM
@Prasad Bhalerao this is not really a supported pattern and better not to do it
the snowflake solutions are very hard to maintain
p

Prasad Bhalerao

09/08/2023, 12:42 AM
@Yee let me give you more clarity I'm deploying flyte with my existing application I did changes in dockerfile of flyteconsole for base url and admin API url Also did changes in go conde change hard-coded /console to mine route so the main goal is I want to configure flyte-binary to not to clash with my existing routes
Hey can you do me a favor I setup the things for flyte it's working as per my requirements Just I need to flytectl config init I'm just using http service and I also have an ingress for the same How can I use http ingress or service.
h

Haytham Abuelfutuh

09/12/2023, 12:13 AM
flytectl expect grpc... did you configure that as well?