Script Names Are Blank #165

Closed
opened 2025-06-07 00:16:18 +00:00 by Quaternions · 2 comments
Owner

When the validation scans the maps for scripts and uploads unreviewed scripts, the names show up empty in the database.

When the validation scans the maps for scripts and uploads unreviewed scripts, the names show up empty in the database.
Quaternions added the validator label 2025-06-07 00:16:18 +00:00
Author
Owner

This works perfectly on docker compose locally but stops working on staging and prod!

This works perfectly on docker compose locally but stops working on staging and prod!
Author
Owner

The api says it's inserting into postgres:

time="2025-06-10T03:58:23Z" level=debug msg="INSERT INTO \"scripts\" (\"name\",\"hash\",\"source\",\"resource_type\",\"resource_id\",\"created_at\",\"updated_at\") VALUES ('surf_telephone.Stuff.Main.MainStageTPs.TPExits.7.SetVelocity.VelocityScript',-6960527130587894508,'local setVelHorizontalSpeed = 115\nlocal setVelVerticalSpeed = 18\nlocal setVel = script.Parent\nlocal setVelVector = setVel.CFrame.LookVector * setVelHorizontalSpeed\nsetVel.AssemblyLinearVelocity = Vector3.new(setVelVector.X, setVelVerticalSpeed, setVelVector.Z)\n',2,29,'2025-06-10 03:58:23.856','2025-06-10 03:58:23.856') RETURNING \"id\" [1.97721ms]"
time="2025-06-10T03:58:23Z" level=debug msg="INSERT INTO \"scripts\" (\"name\",\"hash\",\"source\",\"resource_type\",\"resource_id\",\"created_at\",\"updated_at\") VALUES ('surf_telephone.Stuff.Main.12 - frxzt.Frxzt Pt. 1 - purrplaysLE.Model.Spin',4481997332799791931,'local model = script.Parent\n\nwhile true do\n\tmodel:PivotTo(model:GetPivot() * CFrame.Angles(-0.02, -0.03, -0.01))\n\twait()\nend',2,29,'2025-06-10 03:58:23.857','2025-06-10 03:58:23.857') RETURNING \"id\" [2.780748ms]"

But they are still blank in the list request:
https://maps.staging.strafes.net/api/scripts?Page=15&Limit=100

OH. The name shows up in the request for the individual item:
https://maps.staging.strafes.net/api/scripts/1434

So this is just a golang L silently filling default values again

The api says it's inserting into postgres: ``` time="2025-06-10T03:58:23Z" level=debug msg="INSERT INTO \"scripts\" (\"name\",\"hash\",\"source\",\"resource_type\",\"resource_id\",\"created_at\",\"updated_at\") VALUES ('surf_telephone.Stuff.Main.MainStageTPs.TPExits.7.SetVelocity.VelocityScript',-6960527130587894508,'local setVelHorizontalSpeed = 115\nlocal setVelVerticalSpeed = 18\nlocal setVel = script.Parent\nlocal setVelVector = setVel.CFrame.LookVector * setVelHorizontalSpeed\nsetVel.AssemblyLinearVelocity = Vector3.new(setVelVector.X, setVelVerticalSpeed, setVelVector.Z)\n',2,29,'2025-06-10 03:58:23.856','2025-06-10 03:58:23.856') RETURNING \"id\" [1.97721ms]" time="2025-06-10T03:58:23Z" level=debug msg="INSERT INTO \"scripts\" (\"name\",\"hash\",\"source\",\"resource_type\",\"resource_id\",\"created_at\",\"updated_at\") VALUES ('surf_telephone.Stuff.Main.12 - frxzt.Frxzt Pt. 1 - purrplaysLE.Model.Spin',4481997332799791931,'local model = script.Parent\n\nwhile true do\n\tmodel:PivotTo(model:GetPivot() * CFrame.Angles(-0.02, -0.03, -0.01))\n\twait()\nend',2,29,'2025-06-10 03:58:23.857','2025-06-10 03:58:23.857') RETURNING \"id\" [2.780748ms]" ``` But they are still blank in the list request: https://maps.staging.strafes.net/api/scripts?Page=15&Limit=100 OH. The name shows up in the request for the individual item: https://maps.staging.strafes.net/api/scripts/1434 So this is just a golang L silently filling default values again
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StrafesNET/maps-service#165