ga_karam
(gauri karam)
April 13, 2023, 5:33pm
#1
After running the following code in terminal I get the error,
const {Soup,GLib, Gio} = imports.gi;
let session = new Soup.Session();
const message = Soup.Message.new(‘GET’,‘https://www.example.com ’);
session.send(message, null);
const response_headers = message.get_response_headers();
JS ERROR: TypeError: message.get_response_headers is not a function
@hello.js :30:34
(gjs:8837): Gjs-CRITICAL **: 12:08:35.328: Script hello.js threw an exception
Are you using Soup 2? What’s the GNOME Shell version?
Soup.Message.get_response_headers is Soup 3 (GNOME Shell >=43 ).
ga_karam
(gauri karam)
April 13, 2023, 6:03pm
#3
I am using GNOME Shell 42.5. I am using Ubuntu 22.04.2 LTS. Is it possible to upgrade to Gnome shell 43?
Thank you.
Use Fedora 37 or wait for a week so you can upgrade to Ubuntu 23.04 which is shipping GNOME Shell 44.
Fedora 38 with GNOME Shell 44 should be released at the end of this month too.
1 Like
system
(system)
Closed
May 28, 2023, 6:22pm
#5
This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.