twitter error "HTTP/1.1 403 Forbidden'"
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, I seem to have a good connection but I'm receiving a "HTTP/1.1 403 Forbidden'" error. Please see below. Thanks.
>> c
c =
twitter with properties:
Name: 'MyName'
ScreenName: 'MyScreenName'
MetaData: [1×1 struct]
StatusCode: OK
>> d = search(c,'#MySearch')
d =
ResponseMessage with properties:
StatusLine: 'HTTP/1.1 403 Forbidden'
StatusCode: Forbidden
Header: [1×10 matlab.net.http.HeaderField]
Body: [1×1 matlab.net.http.MessageBody]
Completed: 0
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 24.2.0.2622594 (R2024b) Prerelease
MATLAB License Number: Prerelease
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 24.2 (R2024b)
...
Datafeed Toolbox Version 24.2 (R2024b)
...
1 Kommentar
Steven Lord
am 15 Jul. 2024
The object stored in the Body property of d should have a Data property. Does that show anything that looks relevant to this 403 error message? You may want to call string on the Body property if it's not showing the data as text.
Antworten (2)
Michael Robbins
am 15 Jul. 2024
2 Kommentare
Walter Roberson
am 15 Jul. 2024
Bearbeitet: Walter Roberson
am 15 Jul. 2024
I vaguely remember that twitter cut out bots from its free service. Your access is effectively bot access. You will need higher level access.. which probably means that you will need verified (paid) access.
Ayush
am 28 Nov. 2024
You may get error 403 if there is a firewall or antivirus software that prevents communication via HTTPS, or there is a rejection of self-signed HTTPS certificate generated by a server.
If you cannot solve the issue with above suggestion, send the server log at verbose level to Technical Support to troubleshoot further:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Web Services finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!