SnailyCAD / snaily-cadv4

💻 An open source Computer Aided Dispatch (CAD) for FiveM, this is a web based integration for communities who love police roleplaying and dispatching. Discord: https://discord.gg/eGnrPqEH7U
https://docs.snailycad.org/docs/getting-started
MIT License
147 stars 87 forks source link

Citizen Photos Disappearing #1704

Closed Legacy-TacticalGamingInteractive closed 1 year ago

Legacy-TacticalGamingInteractive commented 1 year ago

What version of Node.js are you using?

Latest

What operating system are you using?

Windows Server 2019

What version of SnailyCAD are you currently using?

v1.62.1 a97814f

Describe the Bug

image

Expected Behavior

Created a new citizen. The photo uploaded. But when I clicked CREATE the photo disappears from the profile.

To Reproduce

No response

casperiv0 commented 1 year ago

Can you try these steps please: https://github.com/SnailyCAD/snaily-cadv4/issues/1662#issuecomment-1582798818

@Legacy-TacticalGamingInteractive

casperiv0 commented 1 year ago

@Legacy-TacticalGamingInteractive, any news here?

bartusek27 commented 1 year ago

The solution mentioned in that ticket didn't helped. For me, the address that is trying to get the image loaded ( for me, it is https://{CAD_DOMAIN}/_next/image?url=https%3A%2F%2F{API_DOMAIN}%2Fstatic%2Fcad%2Fcli4hpm2k0003m95y1yi86spz-sagov_logo.webp&w=32&q=80 ). The response is 400 and "url" parameter is not allowed

Legacy-TacticalGamingInteractive commented 1 year ago

@Legacy-TacticalGamingInteractive, any news here?

That did not work for me.

casperiv0 commented 1 year ago

New fix: git stash && node scripts/copy-env.mjs --client --api && yarn workspace @snailycad/client create-images-domain && yarn turbo run build --filter="{packages/**/**}" && yarn turbo run build --filter="{apps/**/**}"

bartusek27 commented 1 year ago

Same problem, not fixed. Let me know if you need anything to be provided.

Legacy-TacticalGamingInteractive commented 1 year ago

Same problem, not fixed. Let me know if you need anything to be provided.

TRY running yarn workspace @snailycad/client create-images-domain