Network Error #13
              
                Unanswered
              
          
                  
                    
                      its-khushi
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| Fix for 500 Internal Server ErrorThe error happens because no template is selected, and the code breaks. const selectedTemplate = document.querySelector('input[name="template_choice"]:checked');
if (!selectedTemplate) {
  alert("Please select a template");
  return;
}
formData.append('template_choice', selectedTemplate.value);This makes sure the value is only added if a template is selected, avoiding the crash. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While clicking on generate ppt I am getting this error:

How can I resolve this error?
Beta Was this translation helpful? Give feedback.
All reactions