https://discord.cloudflare.com logo
Join Discord
Powered by
# constellation
  • l

    Loski

    05/27/2023, 11:17 PM
    wrangler detects it
    Copy code
    Your worker has access to the following bindings:
    - Constellation Projects:
      - CLASSIFIER: removed
    but then its undefined 🤔
  • c

    Chaika

    05/27/2023, 11:18 PM
    you made your own constellation project and changed the project_id to it as well, I assume, right?
  • c

    Chaika

    05/27/2023, 11:18 PM
    that error looks like exactly the error you would get if the binding is null I believe, just not sure why it would be
  • c

    Chaika

    05/27/2023, 11:20 PM
    oh, are you manually hiding the ID of your constellation project and it's not actually saying the classifier is "removed"? lol, that confused me
  • l

    Loski

    05/27/2023, 11:21 PM
    yup yup
  • l

    Loski

    05/27/2023, 11:21 PM
    i tried creating it through cli and dashboard, same result
  • c

    Chaika

    05/27/2023, 11:22 PM
    I just realized now, as part of the setup process, they have you locally install the beta version of wrangler
    npm install wrangler@beta --save-dev
    , not sure if this is still required or not, but might be worth a try. If you npm install'd when you cloned my repo though, you should already have it
  • l

    Loski

    05/27/2023, 11:23 PM
    yep tried that too
  • c

    Chaika

    05/27/2023, 11:23 PM
    welp you're doomed
  • l

    Loski

    05/27/2023, 11:24 PM
    i think wrangler and i dont get along very well
  • c

    Chaika

    05/27/2023, 11:24 PM
    a definite possibility
  • l

    Loski

    05/27/2023, 11:24 PM
    a colleague tried to repeat the processes and has the same issue on his machine
  • c

    Chaika

    05/27/2023, 11:24 PM
    I don't think this could even the error, but you did change out the model id in the source code as well, right?
  • l

    Loski

    05/27/2023, 11:25 PM
    yup
  • l

    Loski

    05/27/2023, 11:25 PM
    env is undefined at all stages of the worker
  • l

    Loski

    05/27/2023, 11:25 PM
    not undefined, its just an empty object
  • c

    Chaika

    05/27/2023, 11:27 PM
    One other possibility, on Wrangler 3.x the default is local testing, which won't work, has to be
    npx wrangler dev --remote
    or just publishing it and testing it live
  • l

    Loski

    05/27/2023, 11:28 PM
    oh my god
  • c

    Chaika

    05/27/2023, 11:35 PM
    certainly took the long way around to get there. It looks like the default instructions do just say to use
    npx wrangler dev
    , not sure if they were before 3.x came out, or it should work locally but doesn't (which is consistent with my experience)
  • j

    James

    05/27/2023, 11:40 PM
    yeah it's not supported locally. You'd have to use remote, which was default in wrangler 2, but not in 3. 😅
  • b

    biscuit

    05/27/2023, 11:49 PM
    is this after zipping/compression?
  • u

    Unsmart | Tech debt

    05/27/2023, 11:50 PM
    no clue 🤷 I just know they upped the limit from 10mb to 50mb
  • b

    biscuit

    05/27/2023, 11:50 PM
    alright thanks for the info 👍
  • e

    Erisa | Support Engineer

    05/28/2023, 12:05 AM
    https://github.com/cloudflare/cloudflare-docs/pull/9133
  • l

    Loski

    05/28/2023, 4:33 PM
    The inference is quite fast and 50mb is plenty to run many models, I was wondering if there is any plan to allow some sort of python pre-processing before constellation picks the input and the model 🤔 . We have some models that rely on pillow, numpy & pandas to process inputs but, porting or finding an alternative in js/ts can be troublesome and makes moving from other clouds to constellation quite challenging
  • h

    HardAtWork

    05/28/2023, 4:36 PM
    So like supported Python-to-JS transpilation?
  • l

    Loski

    05/28/2023, 4:38 PM
    allowing to upload a python function that is executed before the model would fix most struggles i think
  • h

    HardAtWork

    05/28/2023, 4:39 PM
    Yeah, but to where? CF doesn't currently have a Python-compatible runtime, so it would have to be transpiled(or run elsewhere)
  • l

    Loski

    05/28/2023, 4:41 PM
    that'd be something for the team to figure out 😅
  • h

    HardAtWork

    05/28/2023, 4:42 PM
    ||Unfortunately we cannot be bothered to maintain supercloud-python. We recommend converting your Python pre-processor to JavaScript. Thank you, and have a *super* day!|| This is a /s, if it isn't clear.