Something went wrong.
Closed this issue · 5 comments
SwankyTigerYY commented
error:Something went wrong.url:https://demo.cloudreve.org/#/login
asticode commented
I need more information to be able to help you: logs, screenshots, ...
SwankyTigerYY commented
I used example, I just changed the URL.
username:123@mail.com
password:123123123
package main
import (
"fmt"
"log"
"github.com/asticode/go-astikit"
"github.com/asticode/go-astilectron"
)
func main() {
// Set logger
l := log.New(log.Writer(), log.Prefix(), log.Flags())
// Create astilectron
a, err := astilectron.New(l, astilectron.Options{
AppName: "Test",
BaseDirectoryPath: "example",
})
if err != nil {
l.Fatal(fmt.Errorf("main: creating astilectron failed: %w", err))
}
defer a.Close()
// Handle signals
a.HandleSignals()
// Start
if err = a.Start(); err != nil {
l.Fatal(fmt.Errorf("main: starting astilectron failed: %w", err))
}
// New window
var w *astilectron.Window
if w, err = a.NewWindow("https://demo.cloudreve.org/#/login", &astilectron.WindowOptions{
Center: astikit.BoolPtr(true),
Height: astikit.IntPtr(700),
Width: astikit.IntPtr(700),
}); err != nil {
l.Fatal(fmt.Errorf("main: new window failed: %w", err))
}
// Create windows
if err = w.Create(); err != nil {
l.Fatal(fmt.Errorf("main: creating window failed: %w", err))
}
// Blocking pattern
a.Wait()
}
SwankyTigerYY commented
asticode commented
It seems like this error is not linked to astilectron
but to the website you're calling.
You can use dev tools to know more about the error, but there's nothing more I can do from an astilectron
standpoint.
SwankyTigerYY commented
Thank you for your reply