astriaai / headshots-starter

https://headshots-starter.vercel.app
MIT License
3.56k stars 575 forks source link

Issue with Astria AI callback #107

Closed fred3105 closed 3 months ago

fred3105 commented 3 months ago

Hey there,

I am able to send images and create models through astria/train-model/route.ts However I never get any callback from Astria.

VERCEL URL is set as mydomainname.com promptWebhookWithParams looks like this https://mydomainname.com/astria/prompt-webhook?user_id=someuserid&webhook_secret=somesecret trainWebhookWithParams looks like this https://mydomainname.com/astria/train-webhook?user_id=someuserid&webhook_secret=somesecret

I've tried simpler URLs but still nothing The headers of my request are correct since the action creates a model on Astria The body of my request looks like this

const body = { tune: { title: name, base_tune_id: 690204, name: type, branch: astriaTestModeIsOn ? "fast" : "sd15", token: "ohwx", image_urls: images, callback: trainWebhookWithParams, prompts_attributes: [ { text: some prompt, callback: promptWebhookWithParams, }, { text: some prompt, callback: promptWebhookWithParams, }, ], }, };

I've asked for help on Astria's discord but seem to be stuck, any idea of what could be going wrong?

oceands commented 3 months ago

Hey Fred, the problem isn't with Astria it is with Vercel go to your project and turn off Vercel authentication. This will allow the callback to work properly. Have a try and train another model with the change above, it should work normally as expected.

fred3105 commented 3 months ago

Hey Fred, the problem isn't with Astria it is with Vercel go to your project and turn off Vercel authentication. This will allow the callback to work properly. Have a try and train another model with the change above, it should work normally as expected.

That's not doing it for me, sucks, couple questions:

oceands commented 3 months ago

Hey Fred, the problem isn't with Astria it is with Vercel go to your project and turn off Vercel authentication. This will allow the callback to work properly. Have a try and train another model with the change above, it should work normally as expected.

That's not doing it for me, sucks, couple questions:

  • What do you have in API settings on Astria.ai ? Here: https://www.astria.ai/users/edit#api
  • What does your callback look like ?
  • Are you using the test environment on Astria or training a real model ?
  • What does the body of your request look like ?

Hey Fred, I am using the real model, and my project is in the deployment stage. Try redeployment after said changes are made. It should work. If not, we can get on Zoom tomorrow, and I can show you how my project is set up.

fred3105 commented 3 months ago

Hey Fred, the problem isn't with Astria it is with Vercel go to your project and turn off Vercel authentication. This will allow the callback to work properly. Have a try and train another model with the change above, it should work normally as expected.

That's not doing it for me, sucks, couple questions:

  • What do you have in API settings on Astria.ai ? Here: https://www.astria.ai/users/edit#api
  • What does your callback look like ?
  • Are you using the test environment on Astria or training a real model ?
  • What does the body of your request look like ?

Hey Fred, I am using the real model, and my project is in the deployment stage. Try redeployment after said changes are made. It should work. If not, we can get on Zoom tomorrow, and I can show you how my project is set up.

Would love that, sent you an email