<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 08:22:09 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[BDS-18526] enum HttpRequestMethod don&apos;t work </title>
                <link>https://bugs.mojang.com/browse/BDS-18526</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;The enum HttpRequestMethod don&apos;t work with the last version of @minecraft/server (1.5.0-BETA), with previous version (1.3.0) it&apos;s work, with the same package @minecraft/server-net;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;br/&gt;
1. You just need to create ato write &quot;const req = new mcnet.HttpRequest(uri);&quot;&lt;br/&gt;
2.&#160; And after set the method &quot;req.method = mcnet.HttpRequestMethod.POST&quot;&lt;br/&gt;
3. And after execute it on the server&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Observed Results:&lt;/b&gt;&lt;br/&gt;
&lt;em&gt;We received a error message for the line &quot;req.method = mcnet.HttpRequestMethod.POST&quot;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;No error message and set the method work without problems.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I found a solution for the last version of the API but it&apos;s needed to do it in JavaScript like that:&lt;br/&gt;
const keys = Object.keys(mcnet.HttpRequestMethod);&lt;br/&gt;
const index = Object.keys(mcnet.HttpRequestMethod).indexOf(&quot;Post&quot;);&lt;br/&gt;
const value = Object.values(mcnet.HttpRequestMethod)&lt;span class=&quot;error&quot;&gt;&amp;#91;indexOfApple&amp;#93;&lt;/span&gt;;&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&lt;br/&gt;
Thanks for your attention.&#160;&lt;br/&gt;
&#160;&lt;/p&gt;</description>
                <environment>On linux server with code writted with typescript with gulp to compile </environment>
        <key id="538503">BDS-18526</key>
            <summary>enum HttpRequestMethod don&apos;t work </summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="mrauks">mrauks</reporter>
                        <labels>
                            <label>Server</label>
                            <label>scripting-api</label>
                    </labels>
                <created>Tue, 11 Jul 2023 13:08:29 +0200</created>
                <updated>Fri, 29 Sep 2023 10:37:14 +0200</updated>
                            <resolved>Fri, 29 Sep 2023 10:37:14 +0200</resolved>
                                    <version>1.20.1 Hotfix</version>
                                                            <votes>0</votes>
                                    <watches>0</watches>
                                                                            <comments>
                            <comment id="1282290" author="JIRAUSER648376" created="Fri, 29 Sep 2023 10:37:14 +0200"  >&lt;p&gt;Closing as per comment above. &lt;/p&gt;</comment>
                            <comment id="1280287" author="JIRAUSER758329" created="Tue, 19 Sep 2023 10:42:41 +0200"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I just try it and it&apos;s work now.&lt;/p&gt;

&lt;p&gt;Thanks for the fix.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;/p&gt;</comment>
                            <comment id="1279893" author="JIRAUSER648376" created="Fri, 15 Sep 2023 12:01:10 +0200"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;Does this issue still occur after updating to 1.20.15? &lt;/p&gt;

&lt;p&gt;This ticket will automatically reopen when you reply. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12700" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Description</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>[Briefly describe the bug here]&lt;br/&gt;
&lt;br/&gt;
*Steps to Reproduce:*&lt;br/&gt;
# [Step 1]&lt;br/&gt;
# [Step 2]&lt;br/&gt;
# [Step 3]&lt;br/&gt;
&lt;br/&gt;
*Observed Results:*&lt;br/&gt;
[Describe what happens]&lt;br/&gt;
&lt;br/&gt;
*Expected Results:*&lt;br/&gt;
[Describe what should happen]&lt;br/&gt;
&lt;br/&gt;
*Screenshots/Videos attached:* [please attach an image or short video]&lt;br/&gt;
&lt;br/&gt;
*Notes:*</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i2e9wv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>