<?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: Surya Gedela</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Surya Gedela (@surya_gedela).</description>
    <link>https://www.xdc.dev/surya_gedela</link>
    <image>
      <url>https://www.xdc.dev/images/RcCPQZy9pmbpUvBjPIXninnavn_SVJSgA62aiDCmH7A/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS81/MTgzLzI5MDRkOWRj/LTA2YzktNDFjZi05/YmI0LWYyM2QyMTZm/MGUyMy5wbmc</url>
      <title>Developers Forum for XinFin XDC Network: Surya Gedela</title>
      <link>https://www.xdc.dev/surya_gedela</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/surya_gedela"/>
    <language>en</language>
    <item>
      <title>XDC Safe Creation Bug on Apothem: Vault Not working via Backend API</title>
      <dc:creator>Surya Gedela</dc:creator>
      <pubDate>Wed, 28 May 2025 17:12:05 +0000</pubDate>
      <link>https://www.xdc.dev/surya_gedela/xdc-safe-creation-bug-on-apothem-vault-not-working-via-backend-api-2ob6</link>
      <guid>https://www.xdc.dev/surya_gedela/xdc-safe-creation-bug-on-apothem-vault-not-working-via-backend-api-2ob6</guid>
      <description>&lt;p&gt;Issue Summary: XDC Safe Vault Creation Fails Due to API Error&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Description of the Issue:&lt;br&gt;
I attempted to create a new Safe Account on XDC Safe using the Apothem test &lt;br&gt;
&lt;a href="https://www.xdc.dev/images/45gmdLMjNYa1OCu_zxnuViy4vzeFUEMq0CdyxrhbQhg/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3Rrc2NvazU4dGRt/NmttbG80Y2hkLmpw/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/45gmdLMjNYa1OCu_zxnuViy4vzeFUEMq0CdyxrhbQhg/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3Rrc2NvazU4dGRt/NmttbG80Y2hkLmpw/Zw" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;network. While the interface shows that the *Safe Account is successfully created&lt;/em&gt;&lt;em&gt;, the process stalls at the *"Indexing"&lt;/em&gt; step and never proceeds to the final &lt;em&gt;"Safe Account is ready"&lt;/em&gt; stage. This indicates a backend issue post-account creation.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Platform: XDC Safe (&lt;a href="https://xdcsafe.xdcobserver.io"&gt;https://xdcsafe.xdcobserver.io&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Network:Apothem (Testnet)&lt;/li&gt;
&lt;li&gt;Browser: Chrome (Latest version, confirmed with DevTools)&lt;/li&gt;
&lt;li&gt;Wallet Address: &lt;code&gt;txdcxdcdcac2B_44fE&lt;/code&gt; (displayed)&lt;/li&gt;
&lt;li&gt;Transaction Hash (initial indexing):** &lt;code&gt;0xed27d...3a0e&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Date/Time of Issue: Tue, 27 May 2025, 10:01 GMT&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*Technical Details &amp;amp; Observations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;em&gt;API Endpoint Failing:&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*Request URL:&lt;br&gt;
   &lt;a href="https://cpw.xdcsafe.xdcobserver.io/v1/chains/51/safes/0xf327d29ae19125c4Deb2853dC5d1f7a4997fbc0b"&gt;https://cpw.xdcsafe.xdcobserver.io/v1/chains/51/safes/0xf327d29ae19125c4Deb2853dC5d1f7a4997fbc0b&lt;/a&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

   * **Method:** GET
   * **Status Code:** `404 Not Found`
   * **Error Location:** Browser DevTools &amp;gt; Network tab &amp;gt; XHR request
   * **Response:**
     404 Not Found - No record found for Safe vault ID

2. *Backend API Failure:*

   * The API is attempting to retrieve vault data for a newly created Safe, but the response returns a 404 error, indicating that the Safe vault is **not indexed or not available on backend services** yet.
   * **This is not an RPC failure**: All connected RPC nodes are responsive and processing transactions properly (e.g., creation transaction is visible and confirmed).

3. Client Behavior:

   * The UI hangs on the **"Indexing"** stage indefinitely.
   * Despite successful transaction validation, the frontend cannot proceed due to the missing vault data from the API.
   * Console and Network tabs show multiple failed requests to the same or related endpoints, indicating repeated polling attempts from the frontend.

 **Impact:**
* Users are unable to proceed with using their Safe account on the Apothem test network.
* Testing workflows, contract deployments, and multisig management are blocked due to incomplete setup.
* The problem is reproducible consistently.


*Suggested Actions for XDC Tech Support:

1. **Verify indexing pipeline or database ingestion** for Safe vaults post-creation. Ensure vault data is correctly populated and retrievable via the API.
2. **Review endpoint:** `/v1/chains/51/safes/{vaultAddress}` on Apothem chain ID (`51`) to confirm it is accepting and serving data for new safes.
3. **Log &amp;amp; trace transaction hash:** `0xed27d...3a0e` to verify backend indexing and safe creation completion status.


*Attachments:

* Screenshot showing:
  * XDC Safe creation flow hanging on "Indexing"
  * Network error log in DevTools showing the 404 on the relevant API call.

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

&lt;/div&gt;

</description>
      <category>xdc</category>
      <category>xdcsafe</category>
      <category>safe</category>
      <category>wallet</category>
    </item>
  </channel>
</rss>
