Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Getting error 340500 #26

Open
Rix565 opened this issue Apr 25, 2021 · 7 comments
Open

Getting error 340500 #26

Rix565 opened this issue Apr 25, 2021 · 7 comments

Comments

@Rix565
Copy link
Contributor

Rix565 commented Apr 25, 2021

I'm currently working on a Creators room system, but i can't get it working. (error 340500)
My current code :

from twisted.web import resource
from twisted.internet import reactor
import time

from hatena import Log, NotFound
from DB import Database
from Hatenatools import UGO

#makes a flipnote list of the most seen ones among the recently uploaded
class PyResource(resource.Resource):
	isLeaf = True
	def __init__(self):
		resource.Resource.__init__(self)
	def render(self, request):
		request.responseHeaders.setRawHeaders('content-type', ['text/plain'])
		return
	def CreatorRoom(self):
		ugo = UGO()
		ugo.Loaded = True
		ugo.Items = []
		
		#meta
		ugo.Items.append(("layout", (0)))
		ugo.Items.append(("topscreen text", ["Liked Flipnotes", "Flipnotes", "you", "", "is that your... YOU ?!"], 0))
		ugo.Items.append(("button", 100, "http://flipnote.hatena.com/ds/v2-xx/creatorroom.ugo"))

		
		return ugo.Pack()
@pbsds
Copy link
Owner

pbsds commented Apr 28, 2021

render returns None. Is CreatorRoom supposed to be unused?

@Rix565
Copy link
Contributor Author

Rix565 commented Apr 30, 2021

it's supposed to be used.
i tried

return CreatorRoom

but it didn't work

@pbsds
Copy link
Owner

pbsds commented May 1, 2021

return CreatorRoom()

@Rix565
Copy link
Contributor Author

Rix565 commented May 2, 2021

not working

@Rix565
Copy link
Contributor Author

Rix565 commented May 2, 2021

i also tried

return self.CreatorRoom()

@ghost
Copy link

ghost commented Feb 13, 2022

i dont wanna be stupid but it misses most content i mean its like half of the frontpage ugo script with some extra code and it misses the code to display anything so that might be it

@ghost
Copy link

ghost commented Feb 22, 2022

also it wont know on what to filter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants