I have an error when I use the module "@minecraft/server-net"
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:

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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/minecraft-scripting-samples
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Chat export Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/minecraft-scripting-samples#27 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
microsoft/minecraft-scripting-samples#8 · 13 comments · 2 reactions ·
All issues in microsoft/minecraft-scripting-samples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·