shamil-t / ehr-blockchain

Electronic Health Record (EHR) and Electronic Medical Record (EMR) systems. However, they still face some issues regarding the security of medical records, user ownership of data, data integrity etc. The solution to these issues could be the use of a novel technology, i.e., Blockchain. This technology offers to provide a secure, temper-proof platform for storing medical records and other healthcare related information.
https://www.youtube.com/playlist?list=PL54V-i7zW55d1VKxEkp9DCPt5k_zE6m3X
MIT License
118 stars 51 forks source link

Error while adding doctor to the network #15

Closed divyeshdesanisos closed 2 years ago

divyeshdesanisos commented 2 years ago

Hello there,

I have setup the whole project as described in the video. Things are working as expected. I am facing an error while adding a doctor to the network.

image

I know similar issue - https://github.com/shamil-t/ehr-blockchain/issues/10 is already closed. I did what is written in the same and I have the latest code. I did signed up to infura and I have project secret key and project key.

Thank you in advance.

shamil-t commented 2 years ago

https://github.com/shamil-t/ehr-blockchain/blob/ehr-2.0/src/environments/environment.ts

change the urls to

https://ipfs.infura.io/

eg:

localIPFS: 'http://ipfs.infura.io/', localIPFSGet: 'http://ipfs.infura.io/'

or

install IPFS locally (https://dist.ipfs.tech/#go-ipfs)

divyeshdesanisos commented 2 years ago

Thank you for replying @shamil-t .

I tried and faced the same issue.

image

shamil-t commented 2 years ago

consider installing IPFS locally, since from the last commit i updated the code to use IPFS locally only.

https://dist.ipfs.tech/#go-ipfs

also don't forget to add (in IPFS Settings)

"Access-Control-Allow-Methods": [ "POST", "GET" ], "Access-Control-Allow-Origin": [ "*" ]

in HttpHeader

let me know if any issues.

divyeshdesanisos commented 2 years ago

Thank you @shamil-t - I tried the solution you provided and it worked!! Thank you so much for saving my day.

shamil-t commented 2 years ago

No Problem.

akshithababburi commented 2 years ago

Hi,

I am still facing the below error even after installing IPFS locally. Can you please help?

image
shamil-t commented 2 years ago

Hi Akshitha,

Please modify your IPFS config: as below screen shots

  1. run (from cmd in kubo folder) ipfs daemon
  2. go to http://127.0.0.1:5001/webui
  3. settings -> ipfs config
  4. change the HTTP headers
  5. "Access-Control-Allow-Methods": [ "POST", "GET" ], "Access-Control-Allow-Origin": [ "*" ] GATEWAY API
santhosh9360 commented 1 year ago

still I'm facing this same problem

shamil-t commented 1 year ago

What is the problem, share any screenshots of the issue, along with the console.

santhosh9360 commented 1 year ago

I had changed Ipfs header but face this same issue .what can I do now ? To adding doctor.

On Tue, 7 Feb, 2023, 9:08 pm SHAMIL T, @.***> wrote:

What is the problem, share any screenshots of the issue, along with the console.

— Reply to this email directly, view it on GitHub https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1420981133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW3ZVHXAQFFOMR4CLFJUSD3WWJUAFANCNFSM6AAAAAARBDIDSY . You are receiving this because you commented.Message ID: @.***>

shamil-t commented 1 year ago

Share the screenshot of the console while adding the doctor. like this https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1273053801

santhosh9360 commented 1 year ago

Share the screenshot of the console while adding the doctor. like this #15 (comment)

WhatsApp Image 2023-02-07 at 21 15 57

shamil-t commented 1 year ago

use kubo [https://dist.ipfs.tech/#go-ipfs] instead of IPFS desktop

santhosh9360 commented 1 year ago

use kubo [https://dist.ipfs.tech/#go-ipfs] instead of IPFS desktop

If you can share that demo video pls..

shamil-t commented 1 year ago

download https://dist.ipfs.tech/#go-ipfs and follow https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1333342345

Dimplesingh442 commented 1 year ago

still not working

Screenshot 2023-02-27 at 1 15 23 PM
shamil-t commented 1 year ago

@Dimplesingh442 make sure ipfs is running, and configured properly.

https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1333342345

restart after configuring.

Dimplesingh442 commented 1 year ago

I have tried everything but still it is giving errors

Screenshot 2023-02-27 at 7 59 59 PM
Dimplesingh442 commented 1 year ago
Screenshot 2023-02-27 at 8 02 07 PM Screenshot 2023-02-27 at 8 02 11 PM Screenshot 2023-02-27 at 8 02 15 PM
Dimplesingh442 commented 1 year ago

please help me

Dimplesingh442 commented 1 year ago

thank you now it is working

Midas847 commented 1 year ago

@Dimplesingh442 how did you make it work?

Ayush-505 commented 1 year ago

I am encountering similar problem even after configuring ipfs setting like you said. pls help

shamil-t commented 1 year ago

make sure you restarted IPFS after configuration. refer to this https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1446433017 , https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1333342345 for the correct configuration.

TinaJoJo commented 1 year ago

thank u very much, it works, you helped me a lot

Kanwalza commented 1 year ago

Untitled same error however i have followed comment 15 instructions too but still same issue

Kanwalza commented 1 year ago

can you please help

shamil-t commented 1 year ago

@Kanwalza have you restarted the IPFS after configuring

Kanwalza commented 1 year ago

yes but still having same issue

shamil-t commented 1 year ago

@Kanwalza make sure you have correctly configured IPFS, like this https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1446433017

Kanwalza commented 1 year ago

yes and also here is ipfs setting image

Kanwalza commented 1 year ago

please help

Kanwalza commented 1 year ago

i tried everything

shamil-t commented 1 year ago

what about the Gateway HttpHeaders? https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1333342345

Kanwalza commented 1 year ago

yes its also done see image

shamil-t commented 1 year ago

now restart the IPFS and try. Make sure you are using ipfs-cli (Kubo) https://dist.ipfs.tech/#go-ipfs, not IPFS Desktop, if it previously installed delete .ipfs folder in C:/Users/[username]/.ipfs

Kanwalza commented 1 year ago

i tried everything and still did not work

On Fri, Jun 16, 2023 at 5:16 AM SHAMIL T @.***> wrote:

now restart the IPFS and try. Make sure you are using ipfs-cli (Kubo) https://dist.ipfs.tech/#go-ipfs, not IPFS Desktop, if it previously installed delete .ipfs folder in C:/Users/[username]/.ipfs

— Reply to this email directly, view it on GitHub https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1593875100, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUFHDV4SNNFTBVLS6F43C5LXLOQURANCNFSM6AAAAAARBDIDSY . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards,

Kanwal Zahoor

Kanwalza commented 1 year ago

@shamil-t please help what can i do?

shamil-t commented 1 year ago

contact tshamil90@gmail.com

EdenBrowny commented 1 year ago

The ipfs configuration site isn't work

shamil-t commented 1 year ago

@EdenBrowny make sure the IPFS daemon is running.

ramakantdhol commented 1 year ago

Hi, Shamil I am facing this problem while running EHR project Screenshot 2023-12-03 232116 Screenshot 2023-12-03 232116

ramakantdhol commented 1 year ago

I am using this IPFS Screenshot 2023-12-03 235359 As you mentioned in above comments!!!

shamil-t commented 1 year ago

@ramakantdhol make sure IPFS is configured properly. refer to https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1333342345 and restart after.

shamil-t commented 1 year ago

use IPFS CLI (kubo), not IPFS Desktop

ramakantdhol commented 1 year ago

use IPFS CLI (kubo), not IPFS Desktop

but i am using the same IPFS, which you recommended and this is the same in above comments

ramakantdhol commented 1 year ago

@ramakantdhol make sure IPFS is configured properly. refer to #15 (comment) and restart after.

ok trying

ramakantdhol commented 1 year ago

IPFS CLI (kubo

yes now it is running

ramakantdhol commented 1 year ago

[image: image.png] this service is not available ?

On Sun, Dec 3, 2023 at 11:58 PM SHAMIL T @.***> wrote:

use IPFS CLI (kubo), not IPFS Desktop

— Reply to this email directly, view it on GitHub https://github.com/shamil-t/ehr-blockchain/issues/15#issuecomment-1837560374, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEN2MRLXKBPZOZMUXCJMQBLYHTADFAVCNFSM6AAAAAARBDIDS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGU3DAMZXGQ . You are receiving this because you were mentioned.Message ID: @.***>

ramakantdhol commented 1 year ago

IPFS CLI (kubo

yes now it is running

but patient adding service is not available