Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

readPlaceAsset() fails on Github Actions and ends all logged in session. #104

Open
Stayroh opened this issue Apr 26, 2023 · 0 comments
Open

Comments

@Stayroh
Copy link

Stayroh commented Apr 26, 2023

My goal is to save the terrain from on place as an .rbxmx file. To get the place file I use readPlaceAsset(), because I have Team Create enabled. To use this feature on Github Actions I have created an alt account, which I gave permission to the place. I logged into Roblox with that account in Google Chrome on my Personal Computer and saved the security cookie. When ever I try to run remodel run RemodelTest.lua --auth "<the cookie>" it perfectly works and it saves the terrain as "Terrain.rbxmx". Here is the remodel code:
local TerrainPlace = remodel.readPlaceAsset("9870598446") local Terrain = TerrainPlace:GetService("Workspace").Terrain remodel.writeModelFile("tempAssets/Terrain.rbxmx", Terrain)
But when ever I try to use this in Github Actions (the cookie saved as a Github secret) it fails with this error:
Error: [ERROR] callback error stack traceback: [C]: in field 'readPlaceAsset' [string "RemodelTest.lua"]:1: in main chunk caused by: Unknown response trying to read model asset ID 9870598446. Response is: Ok("{\"errors\":[{\"code\":0,\"message\":\"User is not authorized to access Asset.\"}]}") Error: Process completed with exit code 1.
And it even logs me out of my Google Chrome session.
This is the line in my Github workflows:
- run: remodel run RemodelTest.lua --auth "${{ secrets.PLACELOADER_1_COOKIE }}"

Any ideas to solve this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant