function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Niladri Chakraborty 12Niladri Chakraborty 12 

Access Check Failed! AttributeSet.get(): attribute 'image' of component

Hi I'm new to Eainstein analytics. I would like to develop a lightning component which will take image url & show the image. So I created this component
<aura:component implements="flexipage:availableForAllPageTypes" access="global" controller="MyController" >
 <lightning:card title="Partner Information">
     <Div>
         <p><lightning:input aura:name="image" label ="Enter image url"  type="text"/></p>
	     <br></br> 
         <img url="{!v.image}" />
	
		
    
     </Div>
</lightning:card>
     
</aura:component>
My purpose is to display the image using the URL & predict the image using the url
But while running the component, I'm getting error message 
This page has an error. You might just need to refresh it.
Access Check Failed! AttributeSet.get(): attribute 'image' of component 'markup://c:EinsteinPrediction {3:0}' is not visible to 'markup://c:EinsteinPrediction {3:0}'.
Failing descriptor: {c:EinsteinPrediction}

Can you help me to resolve this issue?
Niladri Chakraborty 12Niladri Chakraborty 12
Any suggestion please?
Ravi Dutt SharmaRavi Dutt Sharma
Hi,

The "image" should be an attribute in your component. You can use the below code:
 
<aura:component implements="flexipage:availableForAllPageTypes" access="global" controller="MyController" >
 
<aura:attribute name="image" type="String"/>


<lightning:card title="Partner Information">
	<div>
		<lightning:input type="url" label="Enter image url" value="{!v.image}"/>
		<br></br> 
		<img url="{!v.image}" />
	</div>
</lightning:card>
     
</aura:component>