Reserve server HTTP Error 403

image

I have a line in my script: TeleportService:ReserveServer(game.PlaceId)
This is the line throwing the error.
I have enabled both the studio access to HTTP and access to APIs so I don’t know what is going on. Anything I could have missed?

3 Likes

Are you sure that everything has been set up properly? Check your game, check your settings and your usage of API. If you’re sure that you’ve got everything properly adjusted and you receive this error, you may want to file a bug report.

I find it especially odd that no additional information is accompanying this error.

2 Likes

Hard coding the PlaceId wouldn’t make a difference. Using game.PlaceId is not different from passing a valid PlaceId. The only time I personally would hard code a PlaceId is if the code needs to run on another place and not the current one.

Please note that you should be pcalling this statement if you’re not, since it can fail (as is evident).

It should work fine in-game. AFAIK it doesn’t let you use ReserveServer in Studio intentionally, but you could file a feature request if you feel it is needed.

2 Likes

You were right, it does work in-game but pcalling doesn’t fix the problem in studio. The error wasn’t occuring any more but it was for some reason making the PlayerAdded event fail…

I’ve decided to remove it from the script.

Thanks everyone for your help.

Just want to add that I always get that error while using TeleportService in studio. I don’t think you can manipulate or do anything with other servers when you’re in studio.

I am not positive but I am pretty sure you cannot use TeleportService in studio, you would need to play the actual game for it to work.

Really? I’ve been able to use TeleportService in Roblox Studio before. It doesn’t always function as intended for obvious reasons, but I remember being able to teleport. Guess there’s some kind of lapse in my memory or something.

I’m not 100% positive about this, I mean it could be possible but I wouldn’t think it would work because when you are in studio you are able to view everything in explorer of the current game. However I could be wrong.

Why would this make a difference to being able to teleport?

TeleportService, I don’t think I could teleport to say Jailbreak in studio.

Yes. I’m curious as to why that would make a difference

Just because from personal experience with teleportservice it doesn’t work in-studio, it has only worked for me in-game because while testing something in studio everything that is currently running in-game is in the explorer. Now say I teleport to a new game, it is not going to update everything for that.

2 Likes

It makes sense that you shouldn’t be able to teleport to other places you do not have access to or that are not part of the current game, because then you’d have that place’s DataModel open in Studio which is a huge risk in itself.