0 votes
383 views

I am new in using open LCA tool. I am trying to fetch data from open LCA using JSON-RPC via Fetch API. I have imported the free database name "elcd_3_2_greendelta_v2_18_correction_20220908" and I am following the documentation from here Link . Below is my code 

let resp = await fetch('http://localhost:8080', {
        method: 'POST',
        body: JSON.stringify({
            jsonrpc: '2.0',
            id: 1,
            method: 'data/get/descriptors',
            params: {
                '@type': 'FlowProperty'
            }
        })
    });
    let descriptors = await resp.json();
    console.log(descriptors);

Error which is coming:

{code-32601message'Does not understand: data/get/descriptors'}

I want to fetch data like impact assessment result and impact categories to show it on frontend.

in openLCA by (120 points)

1 Answer

0 votes
by (520 points)
Hello Abhishek, have you tried fetching by ID? Does it return the same error? (Could be the configurations from the application side). Thanks
...