Skip to content

.Guru Meditation Error - workaround? #147

@LaudixGit

Description

@LaudixGit

Describe the bug
Error during createSelfSignedCert
".Guru Meditation Error..."

How To Reproduce
Steps to reproduce the behavior:

  1. run the Self-Signed-Certificate - no error
  2. run the REST-API example - Meditation error

Expected Behavior
Create self-signed certificate without errors

ESP32 Module
https://www.jacobsparts.com/static/images/WT32-ETH01_datasheet_V1.1.pdf

Software (please complete the following information if applicable)

  • IDE and Version: Arduino 1.8.15
  • OS: Ubuntu 18.04.6 LTS

I noticed 2 requirements I did not expect:

  • wifi must be included (#include <WiFi.h>) even though my device uses ETH the certificate creation fails without wifi.
  • Cannot open a SPIFFS file prior to createSelfSignedCert in the same function. Using a helper function stopped the Meditation error. (even closing the file didn't help)

Tweaking your examples just slightly worked for me
https://gist.github.com/LaudixGit/e44081647c130b2712ef21e2a8bbf8e0
Observe the addition of the "certFileExists" function instead of using SPIFFS.open in the same function prior to createSelfSignedCert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions