<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: Shadab Akhtar</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Shadab Akhtar (@shadabakhtar).</description>
    <link>https://www.xdc.dev/shadabakhtar</link>
    <image>
      <url>https://www.xdc.dev/images/YRi5aWAXwdC9u5vJTbajy-J09i2hGW-c2WUIvvTBV84/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8x/NjgvNDAwODE1YWYt/MjE3YS00ZTI4LThl/ZTctOGJjMWFkMmI3/MmJiLmpwZWc</url>
      <title>Developers Forum for XinFin XDC Network: Shadab Akhtar</title>
      <link>https://www.xdc.dev/shadabakhtar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/shadabakhtar"/>
    <language>en</language>
    <item>
      <title>Urgent: Unable to Deploy New Smart Contracts or Use Existing Contracts on XDC Apothem Network</title>
      <dc:creator>Shadab Akhtar</dc:creator>
      <pubDate>Mon, 23 Jun 2025 08:51:10 +0000</pubDate>
      <link>https://www.xdc.dev/shadabakhtar/urgent-unable-to-deploy-new-smart-contracts-or-use-existing-contracts-on-xdc-apothem-network-3492</link>
      <guid>https://www.xdc.dev/shadabakhtar/urgent-unable-to-deploy-new-smart-contracts-or-use-existing-contracts-on-xdc-apothem-network-3492</guid>
      <description>&lt;p&gt;We’re facing critical issues on the &lt;strong&gt;Apothem Test Network&lt;/strong&gt; that are severely impacting our development and testing workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  ❗ Problems Observed:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Unable to deploy any smart contracts via Hardhat&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Attempts to deploy fail with no response or timeout.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We've tested across multiple RPC endpoints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;https://rpc.apothem.network&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;https://erpc.apothem.network&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;https://earpc.apothem.network&lt;/code&gt;
&lt;img src="https://www.xdc.dev/images/sTqcpD41PLYOcPOjB_l4ydkm22Z1MjK4aVqL8Eh3AX4/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L2doamlmdmVqMm9k/enN0MW5seWE5LnBu/Zw" alt="Image description" width="880" height="443"&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Existing smart contracts are not working&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Transactions and contract interactions revert or behave inconsistently.&lt;/li&gt;
&lt;li&gt;The network seems to &lt;strong&gt;rollback to older block numbers&lt;/strong&gt;, resulting in previously confirmed transactions and contract deployments becoming unavailable or invalid.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🛠️ Steps We Tried:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Switching between different RPC URLs.&lt;/li&gt;
&lt;li&gt;Re-deploying from a clean Hardhat project.&lt;/li&gt;
&lt;li&gt;Verifying block numbers via &lt;code&gt;xdcscan&lt;/code&gt; — shows instability and rollback patterns.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🧪 Environment:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Framework: Hardhat&lt;/li&gt;
&lt;li&gt;Network: Apothem&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚨 Request:
&lt;/h3&gt;

&lt;p&gt;We kindly request the XDC team to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Investigate the &lt;strong&gt;network instability and rollback&lt;/strong&gt; issues.&lt;/li&gt;
&lt;li&gt;Confirm whether &lt;strong&gt;Apothem RPCs are currently degraded or undergoing maintenance&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Provide an &lt;strong&gt;estimated resolution timeline&lt;/strong&gt; or suggest alternative RPCs we can use in the interim.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This issue is blocking us from both development and QA of our dApp.&lt;/p&gt;

&lt;p&gt;Thank you for your support.&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>rpc</category>
      <category>apothem</category>
      <category>error</category>
    </item>
    <item>
      <title>IPFS Gateway Down — https://ipfs.xinfin.network/ Returning 502 Error</title>
      <dc:creator>Shadab Akhtar</dc:creator>
      <pubDate>Tue, 27 May 2025 07:47:53 +0000</pubDate>
      <link>https://www.xdc.dev/shadabakhtar/ipfs-gateway-down-httpsipfsxinfinnetwork-returning-502-error-17hg</link>
      <guid>https://www.xdc.dev/shadabakhtar/ipfs-gateway-down-httpsipfsxinfinnetwork-returning-502-error-17hg</guid>
      <description>&lt;p&gt;We’ve noticed that the IPFS gateway at &lt;a href="https://ipfs.xinfin.network/"&gt;https://ipfs.xinfin.network/&lt;/a&gt; is currently returning a 502 Bad Gateway error and is inaccessible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Details:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt; Gateway returns 502 Bad Gateway&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;URL:&lt;/strong&gt; &lt;a href="https://ipfs.xinfin.network/"&gt;https://ipfs.xinfin.network/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Impact:&lt;/strong&gt; Unable to retrieve IPFS-hosted content via this gateway&lt;/p&gt;

</description>
      <category>ipfs</category>
      <category>xdc</category>
    </item>
    <item>
      <title>SubQuery Indexer Not Advancing Beyond Block 74655418 on Apothem Network (RPC 502/503 Errors)</title>
      <dc:creator>Shadab Akhtar</dc:creator>
      <pubDate>Tue, 13 May 2025 08:21:33 +0000</pubDate>
      <link>https://www.xdc.dev/shadabakhtar/subquery-indexer-not-advancing-beyond-block-74655418-on-apothem-network-rpc-502503-errors-2io3</link>
      <guid>https://www.xdc.dev/shadabakhtar/subquery-indexer-not-advancing-beyond-block-74655418-on-apothem-network-rpc-502503-errors-2io3</guid>
      <description>&lt;h3&gt;
  
  
  Problem
&lt;/h3&gt;

&lt;p&gt;We're currently running a SubQuery project to index data on the &lt;strong&gt;XDC Apothem network&lt;/strong&gt;, but the indexer appears to get stuck around block height &lt;strong&gt;74655418&lt;/strong&gt; and does not progress further.&lt;/p&gt;

&lt;p&gt;Here are some relevant logs from the indexer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;subquery-node-1   | 2025-05-13T07:31:41.951Z &amp;lt;subql-node&amp;gt; INFO Node started on port: 3000 
subquery-node-1   | 2025-05-13T07:31:41.954Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74654819...74654918, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:41.958Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74654919...74655018, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:41.962Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74655019...74655118, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:41.968Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74655119...74655218, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:42.101Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74655219...74655318, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:42.111Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74655319...74655418, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:42.117Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO Enqueueing blocks 74655419...74655518, total 100 blocks 
subquery-node-1   | 2025-05-13T07:31:50.294Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"threadId"&lt;/span&gt;:1,&lt;span class="s2"&gt;"fetchedBlocks"&lt;/span&gt;:152,&lt;span class="s2"&gt;"toFetchBlocks"&lt;/span&gt;:200,&lt;span class="s2"&gt;"isIndexing"&lt;/span&gt;:false&lt;span class="o"&gt;}&lt;/span&gt; 
subquery-node-1   | 2025-05-13T07:31:50.295Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"threadId"&lt;/span&gt;:2,&lt;span class="s2"&gt;"fetchedBlocks"&lt;/span&gt;:72,&lt;span class="s2"&gt;"toFetchBlocks"&lt;/span&gt;:200,&lt;span class="s2"&gt;"isIndexing"&lt;/span&gt;:false&lt;span class="o"&gt;}&lt;/span&gt; 
subquery-node-1   | 2025-05-13T07:31:50.295Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"threadId"&lt;/span&gt;:3,&lt;span class="s2"&gt;"fetchedBlocks"&lt;/span&gt;:48,&lt;span class="s2"&gt;"toFetchBlocks"&lt;/span&gt;:200,&lt;span class="s2"&gt;"isIndexing"&lt;/span&gt;:false&lt;span class="o"&gt;}&lt;/span&gt; 
subquery-node-1   | 2025-05-13T07:31:50.295Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO &lt;span class="o"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"threadId"&lt;/span&gt;:4,&lt;span class="s2"&gt;"fetchedBlocks"&lt;/span&gt;:64,&lt;span class="s2"&gt;"toFetchBlocks"&lt;/span&gt;:198,&lt;span class="s2"&gt;"isIndexing"&lt;/span&gt;:false&lt;span class="o"&gt;}&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After this point, block processing halts.&lt;/p&gt;




&lt;h3&gt;
  
  
  RPC Endpoints Tried
&lt;/h3&gt;

&lt;p&gt;We've tested with the following public RPCs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;https://earpc.apothem.network&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;https://erpc.apothem.network&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;https://rpc.apothem.network&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each of these eventually returned intermittent &lt;strong&gt;502 Bad Gateway&lt;/strong&gt; or &lt;strong&gt;503 Service Unavailable&lt;/strong&gt; errors. Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;subquery-node-1   | 2025-05-13T07:04:02.932Z &amp;lt;WorkerBlockDispatcherService&amp;gt; INFO {"threadId":1,"fetchedBlocks":194,"toFetchBlocks":200,"isIndexing":false} 
subquery-node-1   | 2025-05-13T07:04:05.425Z &amp;lt;FetchService&amp;gt; ERROR Having a problem when getting best block Error: bad response (status=502, headers={"date":"Tue, 13 May 2025 07:04:05 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","server":"cloudflare","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cf-cache-status":"DYNAMIC","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=t7uC21m4GgnJDqeI44aL0s23WRvUQunZgFDpuQCps%2FOhfo9ASEAnGZCsfZCpVo3z%2FbI3AubthSF3EIfrTsSe6oqy74QIbacSTx5oCSMgc19CY6Ii7ZaOO4ko7tnfq%2BfSX7BbyS%2F8wvE%3D\"}]}","cf-ray":"93f04cb8db2cef4e-LHR","alt-svc":"h3=\":443\"; ma=86400"}, body="&amp;lt;html&amp;gt;\r\n&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;502 Bad Gateway&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;\r\n&amp;lt;body&amp;gt;\r\n&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;502 Bad Gateway&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;\r\n&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.18.0 (Ubuntu)&amp;lt;/center&amp;gt;\r\n&amp;lt;/body&amp;gt;\r\n&amp;lt;/html&amp;gt;\r\n", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\",false],\"id\":68,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\",false],\"id\":69,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://earpc.apothem.network", code=SERVER_ERROR, version=web/5.7.1)
subquery-node-1   | 2025-05-13T07:04:05.426Z &amp;lt;FetchService&amp;gt; ERROR Having a problem when getting finalized block Error: bad response (status=502, headers={"date":"Tue, 13 May 2025 07:04:05 GMT","content-type":"text/html","transfer-encoding":"chunked","connection":"keep-alive","server":"cloudflare","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cf-cache-status":"DYNAMIC","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=t7uC21m4GgnJDqeI44aL0s23WRvUQunZgFDpuQCps%2FOhfo9ASEAnGZCsfZCpVo3z%2FbI3AubthSF3EIfrTsSe6oqy74QIbacSTx5oCSMgc19CY6Ii7ZaOO4ko7tnfq%2BfSX7BbyS%2F8wvE%3D\"}]}","cf-ray":"93f04cb8db2cef4e-LHR","alt-svc":"h3=\":443\"; ma=86400"}, body="&amp;lt;html&amp;gt;\r\n&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;502 Bad Gateway&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;\r\n&amp;lt;body&amp;gt;\r\n&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;502 Bad Gateway&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;\r\n&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.18.0 (Ubuntu)&amp;lt;/center&amp;gt;\r\n&amp;lt;/body&amp;gt;\r\n&amp;lt;/html&amp;gt;\r\n", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\",false],\"id\":68,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\",false],\"id\":69,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://earpc.apothem.network", code=SERVER_ERROR, version=web/5.7.1)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Debugging Attempts
&lt;/h3&gt;

&lt;p&gt;We also tried enabling unfinalized block indexing:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;--unfinalized-block=true&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Which showed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;UnfinalizedBlocks&amp;gt; INFO Unfinalized blocks is enabled
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Attempting to set a higher startBlock (e.g. 75000000 [2days ago]) causes a fatal error:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&amp;lt;subql-node&amp;gt; ERROR undefined Error: Node failed to start
Cause: Error: Value at height 74654719 was undefined
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But this eventually fails.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We've Tried
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Switching between all public Apothem RPCs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enabling unfinalized blocks with --unfinalized-block=true&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Changing startBlock to a higher value&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Restarting the indexer container&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Repo reference: &lt;a href="https://github.com/subquery/ethereum-subql-starter/tree/main/XDC/xdc-apothem-starter"&gt;https://github.com/subquery/ethereum-subql-starter/tree/main/XDC/xdc-apothem-starter&lt;/a&gt;&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>subquery</category>
      <category>indexer</category>
      <category>rpc</category>
    </item>
  </channel>
</rss>
