Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

I have an error when I use the module "@minecraft/server-net"

Open
#9 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
game-dev

Research direction

Start with the @minecraft/server-net import and the provided net.http.get example, then inspect the linked error screenshot and reproduce the issue in the Minecraft Bedrock scripting sample. Done means identifying the cause of the reported error and documenting a verified correction or required setup.

Written by the indexing model from the issue text.

Description

I have this error:
image

However, I believe my code is correct.

here is my code:

import * as net from "@minecraft/server-net";
net.http.get("http://localhost/grush/views/index.php").then(r => {
    event.sender.tell("body:"+r.body.length);
})

normally the query should return:

<?php
$data = ["a" => "b"];
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);

return an array with key "a" and value "b"

Dominant language
TypeScript
Stars
241
Forks
48
Avg merge
17m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/minecraft-scripting-samples

All issues in microsoft/minecraft-scripting-samples

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.