# A 404 error is returned when downloading credentials onto the inji application

**URL:** https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910
**Category:** Developer
**Tags:** android, inji
**Created:** [November 14, 2023, 2:43pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910 "2023-11-14T14:43:12Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![jeresaf](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/jeresaf/32/867_2.png) [@jeresaf](https://community.mosip.io/u/jeresaf)
#### Post date: [November 14, 2023, 2:43pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/1 "2023-11-14T14:43:12Z")

</div>

Request link is goes to endpoint residentmobileapp/credentialshare/download  
With sample input of  
{  
“individualId”: “XXXXXXXXXX”,  
“requestId”: “XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”  
}

where individualId is the uin  
and requestId is a guid returned from the server after successful otp entry

we further looked into it and found that the error ws occuring in mimoto most likely and returning a 404 at the method below

 ![Screenshot 2023-11-14 at 13.23.58](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/011b20804a30d5e7cb29ac43c2d3afdc56404333.png)

with either both of the following methods or one of them returning null:  
utilities.getDecryptedVC(requestDTO.getRequestId());  
or  
utilities.getVC(requestDTO.getRequestId());

We need some guidance and why the methods would return null at this point after successfully having the status as ISSUED

---

<div class="post-metadata">

### Author: ![Ajesh\_Vs](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ajesh_vs/32/673_2.png) [@Ajesh\_Vs](https://community.mosip.io/u/Ajesh_Vs)
#### Post date: [November 14, 2023, 2:51pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/2 "2023-11-14T14:51:10Z")

</div>

@LoganathanSekar7627 @sanchi-singh24 kindly assist.

---

<div class="post-metadata">

### Author: ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)
#### Post date: [November 14, 2023, 5:18pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/3 "2023-11-14T17:18:15Z")

</div>

@jeresaf If I am not wrong, you are using collab env to download VC. By looking at mimoto logs, /callback/notify api is returning 404 while issuing VC.  
By looking at downstream service logs, credential service getting error while issuing credentials. And the error is **IDR-CRS-003 → VID is EXPIRED**

can you please recheck you are using UIN or VID while downloading VC?

When credential is issued, the data is written in files. Please refer “/callback/notify” endpoint in CredentialShareController.  
If writing data in files fails, these methods(mentioned in mimoto) will return null.

“/callback/notify” endpoint is async call and Inji keeps checking status of credential is issued or not. If it’s issued then it triggers the download request. @LoganathanSekar7627 we should check why status api is giving status as Issued if credential issuance itself has failed.

---

<div class="post-metadata">

### Author: ![jeresaf](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/jeresaf/32/867_2.png) [@jeresaf](https://community.mosip.io/u/jeresaf)
#### Post date: [November 15, 2023, 8:11am UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/4 "2023-11-15T08:11:27Z")

</div>

We are using our on-prem environment

---

<div class="post-metadata">

### Author: ![jeresaf](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/jeresaf/32/867_2.png) [@jeresaf](https://community.mosip.io/u/jeresaf)
#### Post date: [November 15, 2023, 8:54am UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/5 "2023-11-15T08:54:44Z")

</div>

![WhatsApp Image 2023-11-15 at 11.49.13](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/46a88a40458b5f3a6a6fea6306ac21cd6d389a65.jpeg)

we can see the data share status in credential\_transaction table

---

<div class="post-metadata">

### Author: ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)
#### Post date: [November 16, 2023, 4:17am UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/6 "2023-11-16T04:17:30Z")

</div>

Can you please check logs for mimoto at that moment?  
What’s the response for callback/notify api?  
404 in /download api caused by file not found. This file is supposed to be created and written once mimoto receives event on callback/notify Api.  
Please check logs for IDA and Credential service as well.

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [November 16, 2023, 12:09pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/7 "2023-11-16T12:09:44Z")

</div>

Hi @Ajesh_Vs

I have reached out to you on our community DM please check and confirm the timing to connect online with our Inji tech @swatigoel.

If possible let’s connect now!

Inji 404 error - Debugging  
Thursday, November 16 · 6:30 – 7:30 pm(IST)  
Time zone: Asia/Kolkata  
Google Meet joining info  
Video call link: [https://meet.google.com/iqg-etrb-eqj](https://meet.google.com/iqg-etrb-eqj)

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [November 16, 2023, 12:39pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/8 "2023-11-16T12:39:22Z")

</div>

Hi @Ajesh_Vs

I have updated the invite to 6:30 P.M IST for today 16th Nov.

Best Regards,  
Team MOSIP

---

<div class="post-metadata">

### Author: ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)
#### Post date: [November 16, 2023, 3:34pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/9 "2023-11-16T15:34:07Z")

</div>

After debugging over the call, VC download is fixed by adding mimoto clientId in data-share and kernel default properties.  
However, VC activation is failing now with error `"IDA-MPA-001", "Digital signature verification failed"`

---

<div class="post-metadata">

### Author: ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)
#### Post date: [November 16, 2023, 4:08pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/10 "2023-11-16T16:08:47Z")

</div>

@jeresaf @Ajesh_Vs  
Can you please initiate VC activation and share logs with us?  
Please share logs for following pods  
mimoto, esignet, ida-auth and ida-otp

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [November 16, 2023, 6:27pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/11 "2023-11-16T18:27:57Z")

</div>

Hi @jeresaf @Ajesh_Vs

Call with our team @swatigoel and @Anusha_sunkadh at 11:00 a.m (IST) as per our discussion today.

Please find the link given below.

> **[Join conversation](https://teams.microsoft.com/dl/launcher/launcher.html?url=%2F_%23%2Fl%2Fmeetup-join%2F19%3Ameeting_NWI2NjY0YjMtYjQ4MC00ODQyLWI3OGUtMjZiYjY0YWQ4ZGVj%40thread.v2%2F0%3Fcontext%3D%257b%2522Tid%2522%253a%25223eaefe90-971f-4dd2-8880-53a8aeabfd62%2522%252c%2522Oid%2522%253a%252261c6c8eb-fe65-478f-ad15-b1e7def62625%2522%257d%26anon%3Dtrue&type=meetup-join&deeplinkId=65f44b00-8829-463a-bbde-1c7d5fd9482b&directDl=true&msLaunch=true&enableMobilePage=true)**

Best Regards,  
Team MOSIP

---

<div class="post-metadata">

### Author: ![jeresaf](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/jeresaf/32/867_2.png) [@jeresaf](https://community.mosip.io/u/jeresaf)
#### Post date: [November 16, 2023, 7:08pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/12 "2023-11-16T19:08:28Z")

</div>

Hi @sanchi-singh24

We will be there

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [November 19, 2023, 5:16pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/13 "2023-11-19T17:16:22Z")

</div>

Hi @jeresaf

Regarding the pending issue related to Inji and resident services let us know where you require our help.

Best Regards,  
Team MOSIP

---

<div class="post-metadata">

### Author: ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)
#### Post date: [November 30, 2023, 6:19pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/14 "2023-11-30T18:19:35Z")

</div>

Hi @jeresaf @Ajesh_Vs

If you are still facing issue `to retrieve the UIN/VID using application ID`, can you please help us with the logs?

Please provide logs for following services:

- mimoto
- resident service
- ida-auth
- ida-otp

---

<div class="post-metadata">

### Author: ![jeresaf](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/jeresaf/32/867_2.png) [@jeresaf](https://community.mosip.io/u/jeresaf)
#### Post date: [November 30, 2023, 7:28pm UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/15 "2023-11-30T19:28:00Z")

</div>

Hi @swatigoel,

This specific issue was worked on, thanks.

Best Regards,  
Jeremiah

---

<div class="post-metadata">

### Author: ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)
#### Post date: [December 1, 2023, 5:15am UTC](https://community.mosip.io/t/a-404-error-is-returned-when-downloading-credentials-onto-the-inji-application/910/16 "2023-12-01T05:15:09Z")

</div>


